Ask a question to get started
Enter to sendā¢Shift+Enter new line
BaseMessageChunk( self, content: str | list[str | dict] |
BaseMessage
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.
BaseMessage is serializable.
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.
Message chunk, which can be concatenated with other Message chunks.