langchain.js
    Preparing search index...

    Content block to represent partial data of a tool call

    interface ToolCallChunk<TName extends string = string> {
        args?: string;
        id?: string;
        index?: number;
        name?: TName;
        type: "tool_call_chunk";
        [key: string]: unknown;
    }

    Type Parameters

    • TName extends string = string

    Hierarchy

    • BaseContentBlock
      • ToolCallChunk

    Indexable

    • [key: string]: unknown

      Arbitrary properties

    Index

    Properties

    args?: string

    The arguments to the tool call

    id?: string

    Content block identifier, which can be either

    • generated by the provider (e.g., a provider-specific ID)
    • generated by LangChain upon creation (a uuid prefixed with 'lc-')
    index?: number

    The index of the tool call chunk

    name?: TName

    The name of the tool being called

    type: "tool_call_chunk"

    Type of the content block