Class RunShellTool
java.lang.Object
net.thevpc.naru.tool.impl.RunShellTool
- All Implemented Interfaces:
NaruTool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(Map<String, Object> arguments, AgentContext context) Execute the tool and return a string result that will be sent back to the model as a "tool" role message.Returns the full OpenAI-compatible JSON tool definition.Human-readable description sent to the model.getName()Machine-readable name used in the tool schema (no spaces).
-
Constructor Details
-
RunShellTool
public RunShellTool()
-
-
Method Details
-
getName
-
getDescription
Description copied from interface:NaruToolHuman-readable description sent to the model.- Specified by:
getDescriptionin interfaceNaruTool
-
getDefinition
Description copied from interface:NaruToolReturns the full OpenAI-compatible JSON tool definition.- Specified by:
getDefinitionin interfaceNaruTool
-
execute
Description copied from interface:NaruToolExecute the tool and return a string result that will be sent back to the model as a "tool" role message.
-