Skip to content

Commit 0085cd1

Browse files
committed
replaced less supported tool choice arg with more common
1 parent 39f6eb3 commit 0085cd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sgr_agent_core/agents/sgr_tool_calling_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def _reasoning_phase(self) -> ReasoningTool:
4141
async with self.openai_client.chat.completions.stream(
4242
messages=await self._prepare_context(),
4343
tools=[pydantic_function_tool(ReasoningTool, name=ReasoningTool.tool_name)],
44-
tool_choice={"type": "function", "function": {"name": ReasoningTool.tool_name}},
44+
tool_choice=self.tool_choice,
4545
**self.config.llm.to_openai_client_kwargs(),
4646
) as stream:
4747
async for event in stream:

0 commit comments

Comments
 (0)