Skip to content

AsyncToolSet.execute_tool_calls should run function calls sequentially #41244

Open
@AlexisGado

Description

@AlexisGado

Is your feature request related to a problem? Please describe.
It's almost a bug :
In /azure/ai/agents/models/_patch.py, the AsyncToolSet.execute_tool_calls method is awaiting the function calls sequentially instead of running them concurrently. It completely defeats the purpose of the parallel tool calls.

Describe the solution you'd like
The calls should run concurrently, using something like asyncio.gather.

Describe alternatives you've considered
I could (and probably will) handle function calls myself without using the "create and process" methods of the SDK.

Additional context
N/A

Metadata

Metadata

Assignees

Labels

AIClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions