apollo-code / tools/src / BashTool
Class: BashTool
Implements
Tool<{command:string; }>
Constructors
Constructor
new BashTool():
BashTool
Returns
BashTool
Properties
description
readonlydescription:"Run a command in the Rust sandbox"='Run a command in the Rust sandbox'
Implementation of
inputSchema
readonlyinputSchema:never
Implementation of
name
readonlyname:"Bash"='Bash'
Implementation of
parallelSafe
readonlyparallelSafe:false=false
Implementation of
sandboxRequired
readonlysandboxRequired:true=true
Methods
invoke()
invoke(
i,c):Promise<ToolResult>
Parameters
i
command
string
c
Returns
Promise<ToolResult>
Implementation of
permissionSpec()
permissionSpec(
i):PermissionSpec
Parameters
i
command
string