langchain.js
    Preparing search index...

    Content block to represent an invalid tool call

    interface InvalidToolCall<TName extends string = string> {
        args?: string;
        error?: string;
        id?: string;
        index?: string | number;
        name?: TName;
        type: "invalid_tool_call";
        [key: string]: unknown;
    }

    Type Parameters

    • TName extends string = string

    Hierarchy

    • BaseContentBlock
      • InvalidToolCall

    Indexable

    • [key: string]: unknown

      Arbitrary properties

    Index

    Properties

    args?: string

    The arguments to the tool call

    error?: string

    An error message associated with 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?: string | number

    Index of block in aggregate response

    name?: TName

    The name of the tool being called

    type: "invalid_tool_call"

    Type of the content block