Skip to content

Documentation / @agentick/core / ToolClass

Interface: ToolClass()<TInput> ​

Defined in: core/src/tool/tool.ts:358

Type Parameters ​

TInput ​

TInput = any

ToolClass(props?): ReactElement<unknown, string | JSXElementConstructor<any>> | null

Defined in: core/src/tool/tool.ts:366

Functional component that registers the tool on mount

Parameters ​

props? ​

ComponentBaseProps & Partial<Pick<ToolMetadata<any, any>, "type" | "name" | "description" | "providerOptions" | "libraryOptions" | "requiresConfirmation" | "confirmationMessage" | "intent">>

Returns ​

ReactElement<unknown, string | JSXElementConstructor<any>> | null

Properties ​

metadata ​

metadata: ToolMetadata<TInput>

Defined in: core/src/tool/tool.ts:360

Tool metadata (static property)


run? ​

optional run: Procedure<ToolHandler<TInput, ContentBlock[]>, false>

Defined in: core/src/tool/tool.ts:363

Run procedure (static property). Undefined for client-only tools.

Released under the ISC License.