We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65921b3 commit 3f0c165Copy full SHA for 3f0c165
CHANGELOG.md
@@ -2,6 +2,8 @@
2
3
## Unreleased
4
5
+- Fix tool calls
6
+
7
## 0.12.1
8
9
- Improve welcome message.
src/eca/features/tools/mcp.clj
@@ -146,7 +146,7 @@
146
(catch Exception e
147
{:error true
148
:contents [{:type :text
149
- :content (.getMessage e)}]}))]
+ :text (.getMessage e)}]}))]
150
(logger/debug logger-tag "ToolCall result: " result)
151
result))
152
src/eca/llm_util.clj
@@ -51,7 +51,7 @@
51
52
(defn stringfy-tool-result [result]
53
(reduce
54
- #(str %1 (:content %2) "\n")
+ #(str %1 (:text %2) "\n")
55
""
56
(-> result :output :contents)))
57
0 commit comments