langchain.js
    Preparing search index...

    Interface RemoveMessageFields<TStructure>

    interface RemoveMessageFields<
        TStructure extends MessageStructure = MessageStructure,
    > {
        additional_kwargs?: {
            function_call?: FunctionCall;
            tool_calls?: OpenAIToolCall[];
            [key: string]: unknown;
        };
        contentBlocks?: ContentBlock.Standard[];
        id: string;
        name?: string;
        response_metadata?: Partial<$InferResponseMetadata<TStructure, "remove">>;
    }

    Type Parameters

    Hierarchy

    Index

    Properties

    additional_kwargs?: {
        function_call?: FunctionCall;
        tool_calls?: OpenAIToolCall[];
        [key: string]: unknown;
    }

    Type Declaration

    • [key: string]: unknown
    • Optionalfunction_call?: FunctionCall

      Use "tool_calls" field on AIMessages instead

    • Optionaltool_calls?: OpenAIToolCall[]

      Use "tool_calls" field on AIMessages instead

    contentBlocks?: ContentBlock.Standard[]
    id: string

    The ID of the message to remove.

    name?: string
    response_metadata?: Partial<$InferResponseMetadata<TStructure, "remove">>