diff --git a/packages/service/core/workflow/dispatch/ai/extract.ts b/packages/service/core/workflow/dispatch/ai/extract.ts index 0bfa8dc9e..35e9890e3 100644 --- a/packages/service/core/workflow/dispatch/ai/extract.ts +++ b/packages/service/core/workflow/dispatch/ai/extract.ts @@ -248,8 +248,10 @@ const toolChoice = async (props: ActionProps) => { temperature: 0.01, messages: filterMessages, tools, - tool_choice: { type: 'function', function: { name: agentFunName } } + tool_choice: { type: 'function', function: { name: agentFunName } }, + toolCallMode: 'toolChoice' } as const; + const { answerText: text, toolCalls,