Array of content blocks that make up the message content
OptionalidUnique identifier for this message
Optionalinvalid_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.
OptionalnameMetadata about the message
Optionaltool_Optionaltool_ReadonlytypeOptionalusage_A map of additional attributes to merge with constructor args. Keys are the attribute names, e.g. "foo". Values are the attribute values, which will be serialized. These attributes need to be accepted by the constructor as arguments.
The final serialized identifier for the module.
A map of secrets, which will be omitted from serialization. Keys are paths to the secret in constructor args, e.g. "foo.bar.baz". Values are the secret ids, which will be used when deserializing.
A manual list of keys that should be serialized. If not overridden, all fields passed into the constructor will be serialized.
Get text content of the message.
Optionalformat: "pretty"StaticisType guard to check if an object is an AIMessageChunk. Preserves the MessageStructure type parameter when called with a typed BaseMessage. When called with a typed BaseMessage, preserves the TStructure type
Type guard to check if an object is an AIMessageChunk. When called with unknown, returns base AIMessageChunk type
Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.
Staticlc_
An AI Message Chunk containing intermediate results and request ID.