Message chunk, which can be concatenated with other Message chunks.
BaseMessageChunk(
self,
content: str | list[str | dict] | None = None,
content_blocks: list[types.ContentBlock] | None = None,
**kwargs: Any = {}
)The contents of the message.
Reserved for additional payload data associated with the message.
Examples: response headers, logprobs, token counts, model name.
The type of the message. Must be a string that is unique to the message type.
An optional name for the message.
An optional unique identifier for the message.
Load content blocks from the message content.
Get the text content of the message as a string.