Zum Hauptinhalt springen

Interface: BaseTool<Input>

Simple Tool interface. Likely to change.

Type parameters

NameType
Inputany

Implemented by

Properties

call

Optional call: (input: Input) => string | Promise<string>

This could be undefined if the implementation is not provided, which might be the case when communicating with a llm.

Type declaration

▸ (input): string | Promise<string>

Parameters
NameType
inputInput
Returns

string | Promise<string>

Defined in

packages/core/src/types.ts:76


metadata

metadata: Input extends Known ? ToolMetadata<JSONSchemaType<Input<Input>>> : ToolMetadata<Record<string, unknown>>

Defined in

packages/core/src/types.ts:77