Type Alias AIMessageFields
AIMessageFields: { additional_kwargs?: undefined | { function_call?: FunctionCall; tool_calls?: OpenAIToolCall[]; [
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
Optional
additional_kwargs?: undefined | {
function_call?: FunctionCall;
tool_calls?: OpenAIToolCall[];
[key: string]: unknown;
}
Optional
id?: undefined | string
Optional
invalid_tool_calls?: undefined | InvalidToolCall[]
Optional
name?: undefined | string
Optional
response_metadata?: undefined | Record<string, any>
Optional
tool_calls?: undefined | ToolCall[]
Optional
usage_metadata?: undefined | UsageMetadata
An optional unique identifier for the message. This should ideally be provided by the provider/model which created the message.