Message responsible for deleting other messages.
RemoveMessage is intentionally not generic over MessageStructure.
Its content is always [] (empty), so carrying a structure type parameter
would only cause unnecessary type incompatibilities when mixing messages
from different structure configurations (e.g. passing a RemoveMessage
into an API that expects Message<CustomToolCall>).
class RemoveMessageFinalized content block.
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
The new text to append.
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.
Finalized content block.
An optional identifier for the document.
A path to the module that contains the class, eg. ["langchain", "llms"]
Metadata about the message
The new text to append.
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"]