Interface LanguageModelChatTool

A tool that is available to the language model via LanguageModelChatRequestOptions. A language model uses all the properties of this interface to decide which tool to call, and how to call it.

Stubbed

interface LanguageModelChatTool {
    description: string;
    inputSchema?: object;
    name: string;
}

Properties

description: string

The description of the tool.

inputSchema?: object

A JSON schema for the input this tool accepts.

name: string

The name of the tool.