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?
Discussed in #5489
Originally posted by cecheta April 26, 2026
Currently, when
tool_choice: requiredis 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 thetool_choiceparameter, for example leaving it set astool_choice: requireduntil 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?