LocalLm types documentation
    Preparing search index...

    Interface ToolCallSpec

    Represents a tool call specification.

    ToolCallSpec

    const toolCall: ToolCallSpec = {
    id: '1',
    name: 'getWeather',
    arguments: { location: 'New York' }
    };
    interface ToolCallSpec {
        arguments?: { [key: string]: string };
        id: string;
        name: string;
    }
    Index

    Properties

    Properties

    arguments?: { [key: string]: string }

    The arguments to pass to the tool.

    id: string

    The unique identifier for the tool call.

    name: string

    The name of the tool being called.