Skip to content

Commit 604150d

Browse files
committed
Fix tests
1 parent e254fa1 commit 604150d

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/eca/features/tools.clj

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,11 @@
113113
(update :tools #(mapv with-tool-status %)))))})))
114114

115115
(defn manual-approval? [name config]
116-
(let [manual-approval? (get-in config [:toolCall :manualApproval] nil)]
117-
(logger/info manual-approval?
118-
(coll? manual-approval?)
119-
name)
120-
(if (coll? manual-approval?)
121-
(some #(= name (str %)) manual-approval?)
122-
manual-approval?)))
116+
(boolean
117+
(let [manual-approval? (get-in config [:toolCall :manualApproval] nil)]
118+
(if (coll? manual-approval?)
119+
(some #(= name (str %)) manual-approval?)
120+
manual-approval?))))
123121

124122
(defn tool-call-summary [all-tools name args]
125123
(when-let [summary-fn (:summary-fn (first (filter #(= name (:name %))

test/eca/features/chat_test.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@
198198
(h/messages)))))))
199199

200200
(deftest basic-tool-calling-prompt-test
201-
(testing "Asking to list directories, LLM will check
202-
for allowed directories and then list files"
201+
(testing "Asking to list directories, LLM will check for allowed directories and then list files"
203202
(h/reset-components!)
204203
(let [{:keys [chat-id]}
205204
(complete!

0 commit comments

Comments
 (0)