Skip to main content

Interface: BaseTool<Input>

Simple Tool interface. Likely to change.

Type Parameters

Input = any

Properties

call()?

optional call: (input) => JSONValue | Promise<JSONValue>

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

Parameters

input: Input

Returns

JSONValue | Promise<JSONValue>

The output of the tool.

Defined in

packages/core/dist/llms/index.d.ts:153


metadata

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

Defined in

packages/core/dist/llms/index.d.ts:154