Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Python: OpenAI Chat Client does not respect allow_multiple_tool_calls #2885

Description

@TaoChenOSU

When working with an agent driven by the OpenAI Chat Client, I noticed that the client doesn't respect the setting allow_multiple_tool_calls from the agent.

This is where the client translates the chat options and it clearly omits the allow_multiple_tool_calls option: https://github.com/microsoft/agent-framework/blob/main/python/packages/core/agent_framework/openai/_chat_client.py#L159. It should be translated to parallel_tool_calls: https://platform.openai.com/docs/guides/function-calling#configuring-parallel-function-calling

We should have this fix ASAP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentsUsage: [Issues, PRs], Target: Single agentpythonUsage: [Issues, PRs], Target: Python

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions