Running the Tool Loop Ourselves

Part of the Determesh series. What Determesh talks to the models through Spring AI, but it does not let Spring AI run the tool loop. The model returns tool calls, Determesh runs them one round at a time through Spring AI’s ToolCallingManager, records each step in the thread, and decides whether there is another round. Why A loop you cannot see into cannot be judged The convenient mode of any agent library is: give it tools, give it a prompt, get the final answer. The tool calls happen inside. For a demo that is ideal. For Determesh it hides exactly the things the system needs. ...

October 31, 2026 · 5 min · 854 words · Sagar Nayak