BashTool
Generated by TypeDoc. Do not edit this page directly.
Class: BashTool
Section titled “Class: BashTool”Defined in: packages/tools-node/src/bash.ts:11
Extends
Section titled “Extends”HarnessTool<BashInput>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BashTool(): BashTool;Returns
Section titled “Returns”BashTool
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”| Property | Type | Default value | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
approvalTimeoutMs? | number | undefined | - | HarnessTool.approvalTimeoutMs | packages/core/src/runtime/types/tools.ts:55 |
description | string | "Run a shell command with cwd set to the harness workDir." | HarnessTool.description | - | packages/tools-node/src/bash.ts:13 |
label? | string | undefined | - | HarnessTool.label | packages/core/src/runtime/types/tools.ts:48 |
name | string | "bash" | HarnessTool.name | - | packages/tools-node/src/bash.ts:12 |
permissions | object[] | undefined | HarnessTool.permissions | - | packages/tools-node/src/bash.ts:17 |
requiresApproval | boolean | true | HarnessTool.requiresApproval | - | packages/tools-node/src/bash.ts:16 |
risk | "execute" | undefined | HarnessTool.risk | - | packages/tools-node/src/bash.ts:15 |
schema | ObjectSchema<{ command: StringSchema; timeoutMs: DefaultSchema<unknown, number>; }> | bashSchema | HarnessTool.schema | - | packages/tools-node/src/bash.ts:14 |
Accessors
Section titled “Accessors”inputSchema
Section titled “inputSchema”Get Signature
Section titled “Get Signature”get inputSchema(): unknown;Defined in: packages/core/src/runtime/types/tools.ts:61
Returns
Section titled “Returns”unknown
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get type(): string;Defined in: packages/core/src/runtime/types/tools.ts:57
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”execute()
Section titled “execute()”execute(args, session): Promise<AgentToolResult<unknown>>;Defined in: packages/tools-node/src/bash.ts:19
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
args | ObjectInput |
session | AgentActionSession |
Returns
Section titled “Returns”Promise<AgentToolResult<unknown>>