Skip to Content

Interface OpenAIFunction

The body of an OpenAITool.

The same three things AnthropicTool carries, under the names that API uses — the schema is parameters rather than input_schema. Built by Toolset.toOpenAI; there is no reason to construct one by hand.

interface OpenAIFunction {
    name: string;
    description: string;
    parameters: ToolParameters;
}
Index
name: string

The name a model calls.

description: string

What the operation is for.

parameters: ToolParameters

The JSON Schema for its arguments.