Skip to content

BaseTool

Defined in: .build/typescript/packages/core/src/llms/type.ts:299

Simple Tool interface. Likely to change.

Input = any

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

Defined in: .build/typescript/packages/core/src/llms/type.ts:309

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

Input

JSONValue | Promise<JSONValue>

The output of the tool.


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

Defined in: .build/typescript/packages/core/src/llms/type.ts:310