AnthropicContent
Represents content that can be processed or generated by Anthropic systems.
This is a sealed class with various types of content including textual data, images, documents, and tool-related operations, encapsulating diverse forms of input or output content. Subtypes are serialized with discriminators to support interoperability and flexibility within the serialization format.
Inheritors
Types
Represents a document that originates from a specified source. The document can have various source types, such as a URL, base64-encoded data, or plain text.
Represents an image content type within the AnthropicContent hierarchy. This class is used to encapsulate image data, which can be sourced in different ways, such as via URLs or base64-encoded strings.
Represents a text-based content within the AnthropicContent hierarchy.
Represents the result of a tool invocation within the Anthropic content system.
Represents the usage of a tool in a structured format.