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

Type declaration

  • Optionaladditional_kwargs?: undefined | {
        function_call?: FunctionCall;
        tool_calls?: ToolCall[];
        [key: string]: unknown;
    }
  • content: MessageContent
  • 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_calls?: undefined | ToolCall[]
  • Optionalusage_metadata?: undefined | UsageMetadata