|
211 | 211 | (match-content chat-id "system" {:type "progress" :state "running" :text "Generating"}) |
212 | 212 | (match-content chat-id "assistant" {:type "reasonStarted" :id (m/pred string?)}) |
213 | 213 | (match-content chat-id "assistant" {:type "reasonText" :id (m/pred string?) :text "I should call tool"}) |
214 | | - (match-content chat-id "assistant" {:type "reasonText" :id (m/pred string?) :text " eca__eca_directory_tree"}) |
| 214 | + (match-content chat-id "assistant" {:type "reasonText" :id (m/pred string?) :text " eca__directory_tree"}) |
215 | 215 | (match-content chat-id "assistant" {:type "reasonFinished" :id (m/pred string?) :totalTimeMs (m/pred number?)}) |
216 | 216 | (match-content chat-id "assistant" {:type "text" :text "I will list files"}) |
217 | 217 | (match-content chat-id "assistant" {:type "toolCallPrepare" |
218 | 218 | :origin "native" |
219 | 219 | :id "tool-1" |
220 | | - :name "eca_directory_tree" |
| 220 | + :name "directory_tree" |
221 | 221 | :argumentsText "" |
222 | 222 | :summary "Listing file tree"}) |
223 | 223 | (match-content chat-id "assistant" {:type "toolCallPrepare" |
224 | 224 | :origin "native" |
225 | 225 | :id "tool-1" |
226 | | - :name "eca_directory_tree" |
| 226 | + :name "directory_tree" |
227 | 227 | :argumentsText "{\"pat" |
228 | 228 | :summary "Listing file tree"}) |
229 | 229 | (match-content chat-id "assistant" {:type "toolCallPrepare" |
230 | 230 | :origin "native" |
231 | 231 | :id "tool-1" |
232 | | - :name "eca_directory_tree" |
| 232 | + :name "directory_tree" |
233 | 233 | :argumentsText (str "h\":\"" (h/json-escape-path (h/project-path->canon-path "resources")) "\"}") |
234 | 234 | :summary "Listing file tree"}) |
235 | 235 | (match-content chat-id "system" {:type "usage" |
|
239 | 239 | (match-content chat-id "assistant" {:type "toolCallRun" |
240 | 240 | :origin "native" |
241 | 241 | :id "tool-1" |
242 | | - :name "eca_directory_tree" |
| 242 | + :name "directory_tree" |
243 | 243 | :arguments {:path (h/project-path->canon-path "resources")} |
244 | 244 | :manualApproval false |
245 | 245 | :summary "Listing file tree"}) |
246 | 246 | (match-content chat-id "assistant" {:type "toolCallRunning" |
247 | 247 | :origin "native" |
248 | 248 | :id "tool-1" |
249 | | - :name "eca_directory_tree" |
| 249 | + :name "directory_tree" |
250 | 250 | :arguments {:path (h/project-path->canon-path "resources")} |
251 | 251 | :summary "Listing file tree"}) |
252 | 252 | (match-content chat-id "system" {:type "progress" :state "running" :text "Calling tool"}) |
253 | 253 | (match-content chat-id "assistant" {:type "toolCalled" |
254 | 254 | :origin "native" |
255 | 255 | :id "tool-1" |
256 | | - :name "eca_directory_tree" |
| 256 | + :name "directory_tree" |
257 | 257 | :arguments {:path (h/project-path->canon-path "resources")} |
258 | 258 | :summary "Listing file tree" |
259 | 259 | :totalTimeMs (m/pred number?) |
|
270 | 270 | {:role "assistant" |
271 | 271 | :content [{:type "thinking" |
272 | 272 | :signature "enc-123" |
273 | | - :thinking "I should call tool eca__eca_directory_tree"}]} |
| 273 | + :thinking "I should call tool eca__directory_tree"}]} |
274 | 274 | {:role "assistant" :content [{:type "text" :text "I will list files"}]} |
275 | 275 | {:role "assistant" |
276 | 276 | :content [{:type "tool_use" |
277 | 277 | :id "tool-1" |
278 | | - :name "eca__eca_directory_tree" |
| 278 | + :name "eca__directory_tree" |
279 | 279 | :input {:path (h/project-path->canon-path "resources")}}]} |
280 | 280 | {:role "user" |
281 | 281 | :content [{:type "tool_result" |
|
285 | 285 | " file2.md\n\n" |
286 | 286 | "0 directories, 2 files\n")}]}] |
287 | 287 | :tools (m/embeds |
288 | | - [{:name "eca__eca_directory_tree"}]) |
| 288 | + [{:name "eca__directory_tree"}]) |
289 | 289 | :system (m/pred vector?)} |
290 | 290 | (llm.mocks/get-req-body :tool-calling-0))))))) |
0 commit comments