Closed
Description
Question: I can't seem to figure out how to get agents to call tools in parallel instead of sequentially. Tried setting parallel_tool_calling
param = True in model_settings but no luck (functions are in strict mode). What am I missing I'm not finding any clear doc. for this.
Debug:
openai-agents==0.0.16
Python v. == 3.12.2
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
rm-openai commentedon May 30, 2025
Do you have an example? Just to clarify, parallel_tool_calling means the model can produce N>1 tool calls in a single response
grillorafael commentedon May 30, 2025
I think what we were looking for was:
1st Responses API to yield multiple tool call, multiple tools being called, then another responses api for result generation.
Right now we see:
Responses
Tool
Responses
Tool
Responses
rm-openai commentedon Jun 1, 2025
Yeah what you described is indeed what parallel tool calling should do. Do you have any sample code you can share?
Rehan-Ul-Haq commentedon Jun 1, 2025
Have you tried to change provider? Do check with openai models.
Also read #763
grillorafael commentedon Jun 2, 2025
We are using gpt-4.1
rm-openai commentedon Jun 2, 2025
Happy to help once you are able to share more details on the prompt, tools list, input etc.
grillorafael commentedon Jun 2, 2025
I tested with and without WebSearchTool.
With, it is not doing parallel execution and without it is.
rm-openai commentedon Jun 2, 2025
Ah yes. Parallel tool calling is disabled when you enable hosted tools. We're hoping to enable it in the future!
grillorafael commentedon Jun 2, 2025
I see! For code interpreter it seem to work fine though
rm-openai commentedon Jun 3, 2025
I think that might be an oversight on our part
grillorafael commentedon Jun 3, 2025
You can leave it like this 😂