Class RunShellTool
java.lang.Object
net.thevpc.naru.impl.registry.builtintools.RunShellTool
- All Implemented Interfaces:
NaruTool
Runs an arbitrary shell command and returns combined stdout+stderr.
Output is capped at 8 KB to avoid flooding the model context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptMode(NaruPromptMode mode) execute(NaruToolCallContext context) getDefinition(NaruSession session) getDescription(NaruSession session) name()
-
Constructor Details
-
RunShellTool
public RunShellTool()
-
-
Method Details
-
name
-
getDescription
- Specified by:
getDescriptionin interfaceNaruTool
-
getDefinition
- Specified by:
getDefinitionin interfaceNaruTool
-
execute
-
acceptMode
- Specified by:
acceptModein interfaceNaruTool
-