Ask a question to get started
Enter to send•Shift+Enter new line
ChatMessageChunk( self, content: str | list[str | dict] |
ChatMessage
BaseMessageChunk
The speaker / role of the Message.
The contents of the message.
Reserved for additional payload data associated with the message.
Examples: response headers, logprobs, token counts, model name.
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.
BaseMessage is serializable.
BaseMessage
Get the namespace of the LangChain object.
Get a pretty representation of the message.
Print a pretty representation of the message.
A map of constructor argument names to secret ids.
List of attribute names that should be included in the serialized kwargs.
Is this class serializable?
Return a unique identifier for this class for serialization purposes.
Serialize the object to JSON.
Serialize a "not implemented" object.
The type of the message (used during serialization).
Chat Message chunk.