انتقل إلى المحتوى الرئيسي

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

Source

packages/llamaindex/src/types.ts:45