Optionalkwargs: Record<string, unknown>Additional keyword arguments
Optionalfunction_Optionaltool_The content of the message.
OptionalidAn optional unique identifier for the message. This should ideally be provided by the provider/model which created the message.
Optionalinvalid_OptionalnameThe name of the message sender in a multi-user chat.
Response metadata. For example: response headers, logprobs, token counts, model name.
Optionaltool_Optionalusage_If provided, token usage information associated with the message.
Get text content of the message.
The type of the message.
Represents an AI message in a conversation.