Ask a question to get started
Enter to send•Shift+Enter new line
ChatGenerationChunk( self, *args: Any = (), **kwargs: Any = {}, )
ChatGeneration
The text contents of the output message.
Set the text attribute to be the contents of the message.
Generated text output.
Raw response from the provider.
Return True as this class is serializable.
True
Get the namespace of the LangChain object.
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 message chunk output by the chat model.
Type is used exclusively for serialization purposes.
ChatGeneration chunk.
ChatGeneration chunks can be concatenated with other ChatGeneration chunks.