Class NaruAgentImpl

java.lang.Object
net.thevpc.naru.impl.engine.NaruAgentImpl
All Implemented Interfaces:
NaruAgent

public class NaruAgentImpl extends Object implements NaruAgent
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 NaruRegistry, 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.