agent-core / Exports / IAbstractTool
Interface: IAbstractTool<TParams, TResult>
Abstract tool interface with type parameters for enhanced type safety
Type parameters
| Name | Type | Description |
|---|---|---|
TParams | TToolParameters | Tool parameters type (defaults to AbstractToolParameters for backward compatibility) |
TResult | IToolResult | Tool result type (defaults to ToolResult for backward compatibility) |
Table of contents
Properties
Properties
name
• name: string
Defined in
packages/agent-core/src/abstracts/abstract-tool.ts:80
description
• description: string
Defined in
packages/agent-core/src/abstracts/abstract-tool.ts:81
parameters
• parameters: Object
Type declaration
| Name | Type |
|---|---|
type | "object" |
properties | Record<string, IParameterSchema> |
required? | string[] |
Defined in
packages/agent-core/src/abstracts/abstract-tool.ts:82
execute
• execute: TToolExecutionFunction<TParams, TResult>