AIMessageChunkFields: {
    content: MessageContent;
    additional_kwargs?: undefined | {
        function_call?: FunctionCall;
        tool_calls?: ToolCall[];
        [key: string]: unknown;
    };
    id?: undefined | string;
    invalid_tool_calls?: undefined | InvalidToolCall[];
    name?: undefined | string;
    response_metadata?: undefined | Record<string, any>;
    tool_call_chunks?: undefined | ToolCallChunk[];
    tool_calls?: undefined | ToolCall[];
    usage_metadata?: undefined | UsageMetadata;
}

Type declaration

  • content: MessageContent
  • Optionaladditional_kwargs?: undefined | {
        function_call?: FunctionCall;
        tool_calls?: ToolCall[];
        [key: string]: unknown;
    }
  • Optionalid?: undefined | string

    An optional unique identifier for the message. This should ideally be provided by the provider/model which created the message.

  • Optionalinvalid_tool_calls?: undefined | InvalidToolCall[]
  • Optionalname?: undefined | string
  • Optionalresponse_metadata?: undefined | Record<string, any>

    Response metadata. For example: response headers, logprobs, token counts.

  • Optionaltool_call_chunks?: undefined | ToolCallChunk[]
  • Optionaltool_calls?: undefined | ToolCall[]
  • Optionalusage_metadata?: undefined | UsageMetadata