Abstract
Optional
kwargs: Record<string, unknown>Additional keyword arguments
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.
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()
.