Class DocumentContent
- Namespace
- AnthropicClient.Models
- Assembly
- AnthropicClient.dll
Represents content from a document that is part of a message.
public class DocumentContent : Content
- Inheritance
-
DocumentContent
- Inherited Members
Constructors
DocumentContent(string, string)
Initializes a new instance of the DocumentContent class.
public DocumentContent(string mediaType, string data)
Parameters
Exceptions
- ArgumentNullException
Thrown when the media type or data is null.
DocumentContent(string, string, CacheControl)
Initializes a new instance of the DocumentContent class.
public DocumentContent(string mediaType, string data, CacheControl cacheControl)
Parameters
mediaType
stringThe media type of the document.
data
stringThe data of the document.
cacheControl
CacheControlThe cache control to be used for the content.
Exceptions
- ArgumentNullException
Thrown when the media type, data, or cache control is null.
Properties
Source
Gets the source of the document.
public DocumentSource Source { get; init; }