Skip to content

Commit 3f0c165

Browse files
committed
Fix tool calls
1 parent 65921b3 commit 3f0c165

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Fix tool calls
6+
57
## 0.12.1
68

79
- Improve welcome message.

src/eca/features/tools/mcp.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
(catch Exception e
147147
{:error true
148148
:contents [{:type :text
149-
:content (.getMessage e)}]}))]
149+
:text (.getMessage e)}]}))]
150150
(logger/debug logger-tag "ToolCall result: " result)
151151
result))
152152

src/eca/llm_util.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
(defn stringfy-tool-result [result]
5353
(reduce
54-
#(str %1 (:content %2) "\n")
54+
#(str %1 (:text %2) "\n")
5555
""
5656
(-> result :output :contents)))
5757

0 commit comments

Comments
 (0)