Skip to main content

Type Alias: ToolMetadata<Parameters>

ToolMetadata<Parameters>: object

Type Parameters

Parameters extends Record<string, unknown> = Record<string, unknown>

Type declaration

description

description: string

name

name: string

parameters?

optional parameters: Parameters

OpenAI uses JSON Schema to describe the parameters that a tool can take.

https://json-schema.org/understanding-json-schema

Defined in

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