You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my agent setting, I set both local tools and mcp server tools, and set model_settings=ModelSettings(
temperature=TEMPERATURE, tool_choice="required"), but the tracing showed only local tools were used. Is it possible to use both local tools and mcp server tools?
The text was updated successfully, but these errors were encountered:
Yes it is. tool_choice=required tells the model it must use some tool, but leaves the specific tool up to the model. You could add more stuff to your prompt to guide the model, or use an input that clearly requires the MCP tool.
Also note that the MCP server tool is called as part of the model, so it will show up in the call to responses API in the tracing UI. (i.e. the row that says POST/v1/responses)
In my agent setting, I set both local tools and mcp server tools, and set model_settings=ModelSettings(
temperature=TEMPERATURE, tool_choice="required"), but the tracing showed only local tools were used. Is it possible to use both local tools and mcp server tools?
The text was updated successfully, but these errors were encountered: