mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
fix: improve hasPresentFiles function to check for multiple tool calls
This commit is contained in:
parent
1926c58cf2
commit
7decdbcc83
@ -207,7 +207,8 @@ export function hasToolCalls(message: Message) {
|
||||
|
||||
export function hasPresentFiles(message: Message) {
|
||||
return (
|
||||
message.type === "ai" && message.tool_calls?.[0]?.name === "present_files"
|
||||
message.type === "ai" &&
|
||||
message.tool_calls?.some((toolCall) => toolCall.name === "present_files")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user