Represents a human message in a conversation.
class HumanMessageBaseMessage<TStructure, "human">Array of content blocks that make up the message content
An optional identifier for the document.
Ideally this should be unique across the document collection and formatted as a UUID, but this will not be enforced.
A path to the module that contains the class, eg. ["langchain", "llms"] Usually should be the same as the entrypoint the class is exported from.
Metadata about the message
Block text.
Type guard to check if an object is an AIMessage. Preserves the MessageStructure type parameter when called with a typed BaseMessage. When called with a typed BaseMessage, preserves the TStructure type
The name of the serializable. Override to provide an alias or to preserve the serialized module name in minified environments.
Implemented as a static method to support loading logic.
Array of content blocks that make up the message content
An optional identifier for the document.
A path to the module that contains the class, eg. ["langchain", "llms"]
Metadata about the message
Block text.
Type guard to check if an object is an AIMessage.
The name of the serializable. Override to provide an alias or
A path to the module that contains the class, eg. ["langchain", "llms"]