default
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/tools/GthCustomToolkit.ts:48
Extends
Section titled “Extends”BaseToolkit
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new default(
customTools?):GthCustomToolkit
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/tools/GthCustomToolkit.ts:52
Parameters
Section titled “Parameters”customTools?
Section titled “customTools?”CustomToolsConfig = {}
Returns
Section titled “Returns”GthCustomToolkit
Overrides
Section titled “Overrides”BaseToolkit.constructor
Properties
Section titled “Properties”tools:
StructuredToolInterface<ToolInputSchemaBase,any,any>[]
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/tools/GthCustomToolkit.ts:49
Overrides
Section titled “Overrides”BaseToolkit.tools
Methods
Section titled “Methods”buildCustomCommand()
Section titled “buildCustomCommand()”buildCustomCommand(
commandTemplate,parameters,parameterConfig?):string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/tools/GthCustomToolkit.ts:135
Build a custom command with parameter interpolation
Parameters
Section titled “Parameters”commandTemplate
Section titled “commandTemplate”string
parameters
Section titled “parameters”Record<string, string>
parameterConfig?
Section titled “parameterConfig?”Record<string, CustomCommandParameter>
Returns
Section titled “Returns”string
getTools()
Section titled “getTools()”getTools():
StructuredToolInterface<ToolInputSchemaBase,any,any>[]
Defined in: _worktrees/docs-release/gaunt-sloth/node_modules/.pnpm/@langchain+core@1.2.3_openai@6.47.0_ws@8.21.1_zod@4.4.3__ws@8.21.1/node_modules/@langchain/core/dist/tools/index.d.ts:155
Returns
Section titled “Returns”StructuredToolInterface<ToolInputSchemaBase, any, any>[]
Inherited from
Section titled “Inherited from”BaseToolkit.getTools
promptUserForValidationOverride()
Section titled “promptUserForValidationOverride()”promptUserForValidationOverride(
command,toolName,validationError):Promise<boolean>
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/tools/GthCustomToolkit.ts:180
Prompt the user to confirm execution of a command that failed validation. Returns true if the user confirms, false otherwise.
Parameters
Section titled “Parameters”command
Section titled “command”string
toolName
Section titled “toolName”string
validationError
Section titled “validationError”string
Returns
Section titled “Returns”Promise<boolean>
validateParameterValue()
Section titled “validateParameterValue()”validateParameterValue(
paramValue,paramName,allow?):string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/tools/GthCustomToolkit.ts:62
Validate parameter value to prevent security issues.
Checks can be selectively skipped via the allow list.
Parameters
Section titled “Parameters”paramValue
Section titled “paramValue”string
paramName
Section titled “paramName”string
allow?
Section titled “allow?”ValidationCheck[] = []
Returns
Section titled “Returns”string