Polyman Documentation - v3.1.0
    Preparing search index...

    Interface ToolSpec

    A tool the model may call. parameters is a JSON Schema object.

    interface ToolSpec {
        name: string;
        description: string;
        parameters: Record<string, unknown>;
    }
    Index
    name: string

    Tool name the model uses in a tool call.

    description: string

    What the tool does, shown to the model.

    parameters: Record<string, unknown>

    JSON Schema describing the tool's arguments.