Skip to content

Python: Greater choice when using tool_choice: required #5506

@moonbox3

Description

@moonbox3

Discussed in #5489

Originally posted by cecheta April 26, 2026
Currently, when tool_choice: required is set, it gets automatically reset after the first function invocation, to prevent an infinite loop. While this makes sense, there may be times where the developer wants greater choice over the tool_choice parameter, for example leaving it set as tool_choice: required until a certain function has been called. Currently, this isn't possible without disabling automatic function calling. Is there any way such a thing could be implemented in the Agent Framework?

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentsIssues related to single agentspython

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions