Logo
Interfaces

BaseTool

Defined in: packages/core/src/llms/type.ts:236

Simple Tool interface. Likely to change.

Type Parameters

Input

Input = any

Properties

call()?

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

Defined in: packages/core/src/llms/type.ts:246

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.


metadata

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

Defined in: packages/core/src/llms/type.ts:247

On this page