Skip to content

default

Defined in: packages/agent/src/tools/GthCustomToolkit.ts:54

  • BaseToolkit

new default(customTools?, commandEnv?): GthCustomToolkit

Defined in: packages/agent/src/tools/GthCustomToolkit.ts:63

CustomToolsConfig = {}

CommandEnvPolicy = DEFAULT_COMMAND_ENV_POLICY

GthCustomToolkit

BaseToolkit.constructor

tools: StructuredToolInterface<ToolInputSchemaBase, any, any>[]

Defined in: packages/agent/src/tools/GthCustomToolkit.ts:55

BaseToolkit.tools

buildCustomCommand(commandTemplate, parameters, parameterConfig?): string

Defined in: packages/agent/src/tools/GthCustomToolkit.ts:150

Build a custom command with parameter interpolation

string

Record<string, string>

Record<string, CustomCommandParameter>

string


getTools(): StructuredToolInterface<ToolInputSchemaBase, any, any>[]

Defined in: node_modules/.pnpm/@langchain+core@1.2.13_openai@7.20.0_undici@8.11.2_ws@8.21.3_zod@4.6.5__ws@8.21.3/node_modules/@langchain/core/dist/tools/index.d.ts:156

StructuredToolInterface<ToolInputSchemaBase, any, any>[]

BaseToolkit.getTools


promptUserForValidationOverride(command, toolName, validationError): Promise<boolean>

Defined in: packages/agent/src/tools/GthCustomToolkit.ts:195

Prompt the user to confirm execution of a command that failed validation. Returns true if the user confirms, false otherwise.

string

string

string

Promise<boolean>


validateParameterValue(paramValue, paramName, allow?): string

Defined in: packages/agent/src/tools/GthCustomToolkit.ts:77

Validate parameter value to prevent security issues. Checks can be selectively skipped via the allow list.

string

string

ValidationCheck[] = []

string