Abstract
Optional
kwargs: Record<string, unknown>Additional keyword arguments
The content of the message.
Response metadata. For example: response headers, logprobs, token counts.
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.
Use BaseMessage.content instead.
Base class for all types of messages in a conversation. It includes properties like
content
,name
, andadditional_kwargs
. It also includes methods liketoDict()
and_getType()
.