Index
All Classes and Interfaces|All Packages
A
- addMessage(String) - Method in class net.thevpc.naru.agent.SessionContext
- addMessage(ChatMessage) - Method in class net.thevpc.naru.agent.SessionContext
- addNextOp(AgentOp) - Method in class net.thevpc.naru.agent.SessionContext
- addSystem(String) - Method in class net.thevpc.naru.agent.SessionContext
- addToolResult(String) - Method in class net.thevpc.naru.agent.SessionContext
- AgentConfig - Class in net.thevpc.naru.agent
-
Configuration for a single agent run.
- AgentConfig() - Constructor for class net.thevpc.naru.agent.AgentConfig
- AgentContext - Class in net.thevpc.naru.agent
-
Per-run mutable context shared with all tools.
- AgentContext(String) - Constructor for class net.thevpc.naru.agent.AgentContext
- AgentContext(NPath) - Constructor for class net.thevpc.naru.agent.AgentContext
- AgentOp - Class in net.thevpc.naru.agent
- AgentOp(AgentOp.Type) - Constructor for class net.thevpc.naru.agent.AgentOp
- AgentOp(ToolCall) - Constructor for class net.thevpc.naru.agent.AgentOp
- AgentOp.Type - Enum Class in net.thevpc.naru.agent
- AgentRunner - Class in net.thevpc.naru.agent
-
The core agent loop.
- AgentRunner(ModelProvider, ToolRegistry, AgentConfig) - Constructor for class net.thevpc.naru.agent.AgentRunner
- assistant(String) - Static method in class net.thevpc.naru.model.ChatMessage
- assistantWithToolCalls(String, List) - Static method in class net.thevpc.naru.model.ChatMessage
B
- bool(String, String, boolean) - Static method in class net.thevpc.naru.tool.ToolParameter
- buildDefinition(String, String, ToolParameter...) - Static method in class net.thevpc.naru.tool.ToolRegistry
-
Build a
ToolDefinitionfrom a list ofToolParameters.
C
- call - Variable in class net.thevpc.naru.agent.AgentOp
- CALL_MODEL - Enum constant in enum class net.thevpc.naru.agent.AgentOp.Type
- chat(String, List, List) - Method in interface net.thevpc.naru.model.ModelProvider
-
Send a chat request with optional tool definitions.
- chat(String, List, List) - Method in class net.thevpc.naru.model.OllamaProvider
- ChatMessage - Class in net.thevpc.naru.model
-
A single message in a chat conversation.
- ChatMessage() - Constructor for class net.thevpc.naru.model.ChatMessage
- ChatResponse - Class in net.thevpc.naru.model
-
Response from a
ModelProviderchat call. - ChatResponse() - Constructor for class net.thevpc.naru.model.ChatResponse
- ChatResponse(ChatMessage, boolean) - Constructor for class net.thevpc.naru.model.ChatResponse
- clear() - Method in class net.thevpc.naru.agent.Script
- clearCurrent() - Method in class net.thevpc.naru.agent.ScriptManager
D
- DelegateModelTool - Class in net.thevpc.naru.tool.impl
- DelegateModelTool(ModelProvider, List) - Constructor for class net.thevpc.naru.tool.impl.DelegateModelTool
- dispatch(String, Map, AgentContext) - Method in class net.thevpc.naru.tool.ToolRegistry
-
Dispatch a tool call by name and return its string result.
E
- execute(Map, AgentContext) - Method in class net.thevpc.naru.tool.impl.DelegateModelTool
- execute(Map, AgentContext) - Method in class net.thevpc.naru.tool.impl.ListFilesTool
- execute(Map, AgentContext) - Method in class net.thevpc.naru.tool.impl.MavenCompileTool
- execute(Map, AgentContext) - Method in class net.thevpc.naru.tool.impl.MavenTestTool
- execute(Map, AgentContext) - Method in class net.thevpc.naru.tool.impl.ReadFileTool
- execute(Map, AgentContext) - Method in class net.thevpc.naru.tool.impl.RunScriptTool
- execute(Map, AgentContext) - Method in class net.thevpc.naru.tool.impl.RunShellTool
- execute(Map, AgentContext) - Method in class net.thevpc.naru.tool.impl.WriteFileTool
- execute(Map, AgentContext) - Method in class net.thevpc.naru.tool.impl.WriteScriptLineTool
- execute(Map, AgentContext) - Method in interface net.thevpc.naru.tool.NaruTool
-
Execute the tool and return a string result that will be sent back to the model as a "tool" role message.
- EXECUTE_LINE - Enum constant in enum class net.thevpc.naru.agent.AgentOp.Type
F
- FunctionDef(String, String, Map, List) - Constructor for class net.thevpc.naru.model.ToolDefinition.FunctionDef
G
- getArguments() - Method in class net.thevpc.naru.model.ToolCall
- getContent() - Method in class net.thevpc.naru.model.ChatMessage
- getCurrentScript() - Method in class net.thevpc.naru.agent.ScriptManager
- getCurrentScriptName() - Method in class net.thevpc.naru.agent.ScriptManager
- getDefinition() - Method in class net.thevpc.naru.tool.impl.DelegateModelTool
- getDefinition() - Method in class net.thevpc.naru.tool.impl.ListFilesTool
- getDefinition() - Method in class net.thevpc.naru.tool.impl.MavenCompileTool
- getDefinition() - Method in class net.thevpc.naru.tool.impl.MavenTestTool
- getDefinition() - Method in class net.thevpc.naru.tool.impl.ReadFileTool
- getDefinition() - Method in class net.thevpc.naru.tool.impl.RunScriptTool
- getDefinition() - Method in class net.thevpc.naru.tool.impl.RunShellTool
- getDefinition() - Method in class net.thevpc.naru.tool.impl.WriteFileTool
- getDefinition() - Method in class net.thevpc.naru.tool.impl.WriteScriptLineTool
- getDefinition() - Method in interface net.thevpc.naru.tool.NaruTool
-
Returns the full OpenAI-compatible JSON tool definition.
- getDefinitions() - Method in class net.thevpc.naru.tool.ToolRegistry
-
Returns all registered tool definitions to be sent to the model.
- getDescription() - Method in class net.thevpc.naru.model.ToolDefinition.FunctionDef
- getDescription() - Method in class net.thevpc.naru.tool.impl.DelegateModelTool
- getDescription() - Method in class net.thevpc.naru.tool.impl.ListFilesTool
- getDescription() - Method in class net.thevpc.naru.tool.impl.MavenCompileTool
- getDescription() - Method in class net.thevpc.naru.tool.impl.MavenTestTool
- getDescription() - Method in class net.thevpc.naru.tool.impl.ReadFileTool
- getDescription() - Method in class net.thevpc.naru.tool.impl.RunScriptTool
- getDescription() - Method in class net.thevpc.naru.tool.impl.RunShellTool
- getDescription() - Method in class net.thevpc.naru.tool.impl.WriteFileTool
- getDescription() - Method in class net.thevpc.naru.tool.impl.WriteScriptLineTool
- getDescription() - Method in interface net.thevpc.naru.tool.NaruTool
-
Human-readable description sent to the model.
- getExtraContext() - Method in class net.thevpc.naru.agent.AgentContext
- getFormattedText() - Method in class net.thevpc.naru.agent.Script
- getFunction() - Method in class net.thevpc.naru.model.ToolDefinition
- getId() - Method in class net.thevpc.naru.model.ToolCall
- getImages() - Method in class net.thevpc.naru.model.ChatMessage
- getInt(String, int) - Method in class net.thevpc.naru.model.ToolCall
-
Convenience: get an integer argument value
- getLines() - Method in class net.thevpc.naru.agent.Script
- getMaxSteps() - Method in class net.thevpc.naru.agent.AgentConfig
- getMessage() - Method in class net.thevpc.naru.model.ChatResponse
- getModel() - Method in class net.thevpc.naru.agent.AgentConfig
- getName() - Method in class net.thevpc.naru.agent.Script
- getName() - Method in interface net.thevpc.naru.model.ModelProvider
-
Provider name for display purposes.
- getName() - Method in class net.thevpc.naru.model.OllamaProvider
- getName() - Method in class net.thevpc.naru.model.ToolCall
- getName() - Method in class net.thevpc.naru.model.ToolDefinition.FunctionDef
- getName() - Method in class net.thevpc.naru.tool.impl.DelegateModelTool
- getName() - Method in class net.thevpc.naru.tool.impl.ListFilesTool
- getName() - Method in class net.thevpc.naru.tool.impl.MavenCompileTool
- getName() - Method in class net.thevpc.naru.tool.impl.MavenTestTool
- getName() - Method in class net.thevpc.naru.tool.impl.ReadFileTool
- getName() - Method in class net.thevpc.naru.tool.impl.RunScriptTool
- getName() - Method in class net.thevpc.naru.tool.impl.RunShellTool
- getName() - Method in class net.thevpc.naru.tool.impl.WriteFileTool
- getName() - Method in class net.thevpc.naru.tool.impl.WriteScriptLineTool
- getName() - Method in interface net.thevpc.naru.tool.NaruTool
-
Machine-readable name used in the tool schema (no spaces).
- getName() - Method in class net.thevpc.naru.tool.ToolParameter
- getParameters() - Method in class net.thevpc.naru.model.ToolDefinition.FunctionDef
- getProjectDir() - Method in class net.thevpc.naru.agent.AgentContext
- getProvider() - Method in class net.thevpc.naru.agent.AgentConfig
- getProviderUrl() - Method in class net.thevpc.naru.agent.AgentConfig
- getRole() - Method in class net.thevpc.naru.model.ChatMessage
- getSchema() - Method in class net.thevpc.naru.tool.ToolParameter
- getScript(String) - Method in class net.thevpc.naru.agent.ScriptManager
- getScriptManager() - Method in class net.thevpc.naru.agent.AgentContext
- getStopReason() - Method in class net.thevpc.naru.model.ChatResponse
- getString(String) - Method in class net.thevpc.naru.model.ToolCall
-
Convenience: get a string argument value
- getToolCallId() - Method in class net.thevpc.naru.model.ChatMessage
- getToolCalls() - Method in class net.thevpc.naru.model.ChatMessage
- getToolName() - Method in class net.thevpc.naru.model.ChatMessage
- getTotalTokens() - Method in class net.thevpc.naru.model.ChatResponse
- getType() - Method in class net.thevpc.naru.model.ToolDefinition
- getUserQueries() - Method in class net.thevpc.naru.agent.SessionContext
- getVisionModel() - Method in class net.thevpc.naru.agent.AgentConfig
H
- hasToolCalls() - Method in class net.thevpc.naru.model.ChatMessage
- hasToolCalls() - Method in class net.thevpc.naru.model.ChatResponse
I
- ImageUtil - Class in net.thevpc.naru.util
-
Utility helpers for image handling.
- integer(String, String, boolean) - Static method in class net.thevpc.naru.tool.ToolParameter
- isDone() - Method in class net.thevpc.naru.model.ChatResponse
- isEmpty() - Method in class net.thevpc.naru.agent.Script
- isEmpty() - Method in class net.thevpc.naru.tool.ToolRegistry
- isRequired() - Method in class net.thevpc.naru.tool.ToolParameter
- isRequireUserInput() - Method in class net.thevpc.naru.agent.SessionContext
- isVerbose() - Method in class net.thevpc.naru.agent.AgentConfig
L
- listCurrent() - Method in class net.thevpc.naru.agent.ScriptManager
- ListFilesTool - Class in net.thevpc.naru.tool.impl
-
Lists files in a directory, optionally filtered by a glob pattern.
- ListFilesTool() - Constructor for class net.thevpc.naru.tool.impl.ListFilesTool
- listModels() - Method in interface net.thevpc.naru.model.ModelProvider
-
Fetch the list of available models from this provider.
- listModels() - Method in class net.thevpc.naru.model.OllamaProvider
- load(String, AgentContext) - Method in class net.thevpc.naru.agent.ScriptManager
- logger(Consumer) - Method in class net.thevpc.naru.agent.AgentRunner
M
- main(String[]) - Static method in class net.thevpc.naru.NaruApp
- MavenCompileTool - Class in net.thevpc.naru.tool.impl
-
Runs
mvn compilein a Maven project directory. - MavenCompileTool() - Constructor for class net.thevpc.naru.tool.impl.MavenCompileTool
- MavenTestTool - Class in net.thevpc.naru.tool.impl
-
Runs
mvn test(optionally limited to a single test class). - MavenTestTool() - Constructor for class net.thevpc.naru.tool.impl.MavenTestTool
- maxSteps(int) - Method in class net.thevpc.naru.agent.AgentConfig
- mimeType(String) - Static method in class net.thevpc.naru.util.ImageUtil
-
Returns the MIME type based on file extension (best-effort).
- model(String) - Method in class net.thevpc.naru.agent.AgentConfig
- ModelProvider - Interface in net.thevpc.naru.model
-
Abstraction over any LLM backend (Ollama, OpenAI, Anthropic, …).
N
- names() - Method in class net.thevpc.naru.tool.ToolRegistry
- NaruApp - Class in net.thevpc.naru
-
NARU — Nuts AI Reasoning Unit.
- NaruApp() - Constructor for class net.thevpc.naru.NaruApp
- NaruCommand - Class in net.thevpc.naru
-
Parses CLI arguments and wires everything together for a single agent run.
- NaruCommand(NCmdLine) - Constructor for class net.thevpc.naru.NaruCommand
- NaruTool - Interface in net.thevpc.naru.tool
-
A tool that can be called by the agent's reasoning model.
- net.thevpc.naru - package net.thevpc.naru
- net.thevpc.naru.agent - package net.thevpc.naru.agent
- net.thevpc.naru.model - package net.thevpc.naru.model
- net.thevpc.naru.tool - package net.thevpc.naru.tool
- net.thevpc.naru.tool.impl - package net.thevpc.naru.tool.impl
- net.thevpc.naru.util - package net.thevpc.naru.util
- net.thevpc.netbeanslauncher - module net.thevpc.netbeanslauncher
- nextOp() - Method in class net.thevpc.naru.agent.SessionContext
O
- ofCallModel() - Static method in class net.thevpc.naru.agent.AgentOp
- ofReadLine() - Static method in class net.thevpc.naru.agent.AgentOp
- ofToolCall(ToolCall) - Static method in class net.thevpc.naru.agent.AgentOp
- OllamaProvider - Class in net.thevpc.naru.model
-
Ollama provider — talks to a local (or remote) Ollama server via REST.
- OllamaProvider(String) - Constructor for class net.thevpc.naru.model.OllamaProvider
P
- provider(String) - Method in class net.thevpc.naru.agent.AgentConfig
- providerUrl(String) - Method in class net.thevpc.naru.agent.AgentConfig
- putLine(int, String) - Method in class net.thevpc.naru.agent.Script
- putLine(int, String) - Method in class net.thevpc.naru.agent.ScriptManager
R
- ReadFileTool - Class in net.thevpc.naru.tool.impl
-
Reads a text file from disk and returns its content.
- ReadFileTool() - Constructor for class net.thevpc.naru.tool.impl.ReadFileTool
- READLINE - Enum constant in enum class net.thevpc.naru.agent.AgentOp.Type
- register(NaruTool) - Method in class net.thevpc.naru.tool.ToolRegistry
-
Register a tool.
- removeLine(int) - Method in class net.thevpc.naru.agent.Script
- removeLine(int) - Method in class net.thevpc.naru.agent.ScriptManager
- resolve(String) - Method in class net.thevpc.naru.agent.AgentContext
-
Resolve a path against the project directory.
- run() - Method in class net.thevpc.naru.NaruApp
- run() - Method in class net.thevpc.naru.NaruCommand
- run(String, AgentContext) - Method in class net.thevpc.naru.agent.AgentRunner
-
Run the agent with the given user task.
- RunScriptTool - Class in net.thevpc.naru.tool.impl
- RunScriptTool() - Constructor for class net.thevpc.naru.tool.impl.RunScriptTool
- RunShellTool - Class in net.thevpc.naru.tool.impl
-
Runs an arbitrary shell command and returns combined stdout+stderr.
- RunShellTool() - Constructor for class net.thevpc.naru.tool.impl.RunShellTool
S
- save(String, AgentContext) - Method in class net.thevpc.naru.agent.ScriptManager
- Script - Class in net.thevpc.naru.agent
- Script(String) - Constructor for class net.thevpc.naru.agent.Script
- ScriptManager - Class in net.thevpc.naru.agent
- ScriptManager() - Constructor for class net.thevpc.naru.agent.ScriptManager
- SessionContext - Class in net.thevpc.naru.agent
- SessionContext(AgentContext) - Constructor for class net.thevpc.naru.agent.SessionContext
- setArguments(Map) - Method in class net.thevpc.naru.model.ToolCall
- setContent(String) - Method in class net.thevpc.naru.model.ChatMessage
- setDone(boolean) - Method in class net.thevpc.naru.model.ChatResponse
- setExtraContext(String) - Method in class net.thevpc.naru.agent.AgentContext
- setId(String) - Method in class net.thevpc.naru.model.ToolCall
- setImages(List) - Method in class net.thevpc.naru.model.ChatMessage
- setLastResult(ChatMessage) - Method in class net.thevpc.naru.agent.SessionContext
- setMessage(ChatMessage) - Method in class net.thevpc.naru.model.ChatResponse
- setName(String) - Method in class net.thevpc.naru.model.ToolCall
- setProjectDir(NPath) - Method in class net.thevpc.naru.agent.AgentContext
- setRequireUserInput(boolean) - Method in class net.thevpc.naru.agent.SessionContext
- setRole(String) - Method in class net.thevpc.naru.model.ChatMessage
- setStopReason(String) - Method in class net.thevpc.naru.model.ChatResponse
- setToolCallId(String) - Method in class net.thevpc.naru.model.ChatMessage
- setToolCalls(List) - Method in class net.thevpc.naru.model.ChatMessage
- setToolName(String) - Method in class net.thevpc.naru.model.ChatMessage
- setTotalTokens(int) - Method in class net.thevpc.naru.model.ChatResponse
- string(String, String, boolean) - Static method in class net.thevpc.naru.tool.ToolParameter
- switchScript(String) - Method in class net.thevpc.naru.agent.ScriptManager
- system(String) - Static method in class net.thevpc.naru.model.ChatMessage
T
- toBase64(String) - Static method in class net.thevpc.naru.util.ImageUtil
-
Reads an image file from disk and returns it as a Base64-encoded string (no data-URL prefix — just the raw base64 data that Ollama expects).
- toMap() - Method in class net.thevpc.naru.model.ToolDefinition.FunctionDef
- toMap() - Method in class net.thevpc.naru.model.ToolDefinition
- tool(String, String, String) - Static method in class net.thevpc.naru.model.ChatMessage
- TOOL_CALL - Enum constant in enum class net.thevpc.naru.agent.AgentOp.Type
- ToolCall - Class in net.thevpc.naru.model
-
A tool call requested by the model inside an assistant message.
- ToolCall() - Constructor for class net.thevpc.naru.model.ToolCall
- ToolCall(String, String, Map) - Constructor for class net.thevpc.naru.model.ToolCall
- ToolDefinition - Class in net.thevpc.naru.model
-
OpenAI-compatible tool definition (Ollama uses the same format).
- ToolDefinition(String, String, Map, List) - Constructor for class net.thevpc.naru.model.ToolDefinition
- ToolDefinition.FunctionDef - Class in net.thevpc.naru.model
- ToolParameter - Class in net.thevpc.naru.tool
-
Builder for a single parameter inside a JSON schema "properties" block.
- ToolRegistry - Class in net.thevpc.naru.tool
-
Registry of all tools available to the agent.
- ToolRegistry() - Constructor for class net.thevpc.naru.tool.ToolRegistry
- toString() - Method in class net.thevpc.naru.model.ChatMessage
- toString() - Method in class net.thevpc.naru.model.ToolCall
- tryParseLine(String) - Method in class net.thevpc.naru.agent.ScriptManager
- type - Variable in class net.thevpc.naru.agent.AgentOp
U
- user(String) - Static method in class net.thevpc.naru.model.ChatMessage
- userWithImages(String, List) - Static method in class net.thevpc.naru.model.ChatMessage
V
- valueOf(String) - Static method in enum class net.thevpc.naru.agent.AgentOp.Type
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.thevpc.naru.agent.AgentOp.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verbose(boolean) - Method in class net.thevpc.naru.agent.AgentConfig
- visionModel(String) - Method in class net.thevpc.naru.agent.AgentConfig
W
- WriteFileTool - Class in net.thevpc.naru.tool.impl
-
Writes (or overwrites) a file on disk.
- WriteFileTool() - Constructor for class net.thevpc.naru.tool.impl.WriteFileTool
- WriteScriptLineTool - Class in net.thevpc.naru.tool.impl
- WriteScriptLineTool() - Constructor for class net.thevpc.naru.tool.impl.WriteScriptLineTool
All Classes and Interfaces|All Packages