File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 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 %))
Original file line number Diff line number Diff line change 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!
You can’t perform that action at this time.
0 commit comments