Skip to content

apollo-code


apollo-code / tools/src / BashTool

Class: BashTool

Implements

  • Tool<{ command: string; }>

Constructors

Constructor

new BashTool(): BashTool

Returns

BashTool

Properties

description

readonly description: "Run a command in the Rust sandbox" = 'Run a command in the Rust sandbox'

Implementation of

Tool.description


inputSchema

readonly inputSchema: never

Implementation of

Tool.inputSchema


name

readonly name: "Bash" = 'Bash'

Implementation of

Tool.name


parallelSafe

readonly parallelSafe: false = false

Implementation of

Tool.parallelSafe


sandboxRequired

readonly sandboxRequired: true = true

Methods

invoke()

invoke(i, c): Promise<ToolResult>

Parameters

i
command

string

c

ToolContext

Returns

Promise<ToolResult>

Implementation of

Tool.invoke


permissionSpec()

permissionSpec(i): PermissionSpec

Parameters

i
command

string

Returns

PermissionSpec

Implementation of

Tool.permissionSpec