mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 04:14:46 +08:00
fix: improve hasPresentFiles function to check for multiple tool calls
This commit is contained in:
@@ -207,7 +207,8 @@ export function hasToolCalls(message: Message) {
|
|||||||
|
|
||||||
export function hasPresentFiles(message: Message) {
|
export function hasPresentFiles(message: Message) {
|
||||||
return (
|
return (
|
||||||
message.type === "ai" && message.tool_calls?.[0]?.name === "present_files"
|
message.type === "ai" &&
|
||||||
|
message.tool_calls?.some((toolCall) => toolCall.name === "present_files")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user