Class AgentRunner

java.lang.Object
net.thevpc.naru.agent.AgentRunner

public class AgentRunner extends Object
The core agent loop.
  1. Adds a system prompt + user task to the conversation history.
  2. Calls the model.
  3. If the model returns tool_calls: dispatches each call via ToolRegistry, appends the results, and loops.
  4. If the model returns plain text: that is the final answer.
  5. Stops after maxSteps iterations regardless.

This class is pure Java — no Nuts dependency — so it can be extracted into a standalone library later.