Skip to content

agents / Exports / ToolInterface

Interface: ToolInterface

Base tool interface

Implemented by

Table of contents

Properties

Methods

Properties

schema

schema: ToolSchema

Tool schema

Defined in

packages/agents/src/interfaces/tool.ts:162

Methods

execute

execute(parameters, context?): Promise<ToolResult>

Execute the tool with given parameters

Parameters

NameType
parametersToolParameters
context?ToolExecutionContext

Returns

Promise<ToolResult>

Defined in

packages/agents/src/interfaces/tool.ts:167


validate

validate(parameters): boolean

Validate tool parameters

Parameters

NameType
parametersToolParameters

Returns

boolean

Defined in

packages/agents/src/interfaces/tool.ts:172


validateParameters

validateParameters(parameters): ParameterValidationResult

Validate tool parameters with detailed result

Parameters

NameType
parametersToolParameters

Returns

ParameterValidationResult

Defined in

packages/agents/src/interfaces/tool.ts:177


getDescription

getDescription(): string

Get tool description

Returns

string

Defined in

packages/agents/src/interfaces/tool.ts:182

Released under the MIT License.