Type Alias AIMessageChunkFields
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
Optional
additional_kwargs?: undefined | {
function_call?: FunctionCall;
tool_calls?: ToolCall[];
[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_call_chunks?: undefined | ToolCallChunk[]
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.