From 5069ce92a08c8a8ccee097875b6fde132f9a5eaa Mon Sep 17 00:00:00 2001 From: Daniel <57051444+daniel-lxs@users.noreply.github.com> Date: Thu, 13 Nov 2025 15:16:15 -0500 Subject: [PATCH] fix: change tool_choice from required to auto for native protocol (#9242) --- src/core/task/Task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/task/Task.ts b/src/core/task/Task.ts index fd9611af28..c9a8314030 100644 --- a/src/core/task/Task.ts +++ b/src/core/task/Task.ts @@ -2957,7 +2957,7 @@ export class Task extends EventEmitter implements TaskLike { mode: mode, taskId: this.taskId, // Include tools and tool protocol when using native protocol and model supports it - ...(shouldIncludeTools ? { tools: allTools, tool_choice: "required", toolProtocol } : {}), + ...(shouldIncludeTools ? { tools: allTools, tool_choice: "auto", toolProtocol } : {}), } // The provider accepts reasoning items alongside standard messages; cast to the expected parameter type.