Abstract
Optional
kwargs: Record<string, unknown>Additional keyword arguments
Optional
function_Optional
tool_The content of the message.
Optional
idAn optional unique identifier for the message. This should ideally be provided by the provider/model which created the message.
Optional
nameThe name of the message sender in a multi-user chat.
Response metadata. For example: response headers, logprobs, token counts.
Use BaseMessage.content instead.
Abstract
concatThe type of the message.
Represents a chunk of a message, which can be concatenated with other message chunks. It includes a method
_merge_kwargs_dict()
for merging additional keyword arguments from anotherBaseMessageChunk
into this one. It also overrides the__add__()
method to support concatenation ofBaseMessageChunk
instances.