Represents a tool message in a conversation.
class ToolMessageBaseMessage<TStructure, "tool">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"]
Artifact of the Tool execution which is not meant to be sent to the model.
Should only be specified if it is different from the message content, e.g. if only a subset of the full tool output is being passed as message content but the full output is needed in other parts of the code.
Content block identifier, which can be either
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 for this call and any sub-calls (eg. a Chain calling an LLM). Keys should be strings, values should be JSON-serializable.
The name of the tool being called
Metadata about the message
The status of the server tool call
Type of the content block
Array of content blocks that make up the message content