Tool_choice = auto sending content and tool_calls

I tried turning on “required” with Spring AI and that caused an infinite loop, because it never got to a “stop” message (it always had to call a tool). Ouch! Spring handles all of the back and forth automatically with tool calls and only returns to the caller the final “stop” message. Thank you very much for taking the time to help me!

1 Like