langchain.js
    Preparing search index...

    Interface ToolCall<TName, TArgs>

    interface ToolCall<
        TName extends string = string,
        TArgs extends Record<string, any> = Record<string, any>,
    > {
        args: TArgs;
        id?: string;
        name: TName;
        type?: "tool_call";
    }

    Type Parameters

    • TName extends string = string
    • TArgs extends Record<string, any> = Record<string, any>
    Index

    Properties

    Properties

    args: TArgs

    The arguments to the tool call

    id?: string

    If provided, an identifier associated with the tool call

    name: TName

    The name of the tool being called

    type?: "tool_call"