Skip to content

Commit 7460a2b

Browse files
committed
tool_call => tool_call_info to not conflict with internal tool calls of model
1 parent acb4631 commit 7460a2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/tiny-agents/src/lib/webServer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ export function startServer(agent: Agent): void {
9797
delta: {
9898
role: "assistant",
9999
content:
100-
"<tool_call>" + `Tool[${chunk.name}] ${chunk.tool_call_id}\n` + chunk.content + "</tool_call>",
100+
"<tool_call_info>" +
101+
`Tool[${chunk.name}] ${chunk.tool_call_id}\n` +
102+
chunk.content +
103+
"</tool_call_info>",
101104
},
102105
},
103106
],

0 commit comments

Comments
 (0)