Table of Contents

Class DocumentSource

Namespace
AnthropicClient.Models
Assembly
AnthropicClient.dll

Represents a document source.

public class DocumentSource
Inheritance
DocumentSource
Inherited Members

Constructors

DocumentSource(string, string)

Initializes a new instance of the DocumentSource class.

public DocumentSource(string mediaType, string data)

Parameters

mediaType string

The media type of the document.

data string

The data of the document.

Exceptions

ArgumentException

Thrown when the media type is invalid.

ArgumentNullException

Thrown when the media type or data is null.

Properties

Data

Gets the data of the document.

public string Data { get; init; }

Property Value

string

MediaType

Gets the media type of the document.

[JsonPropertyName("media_type")]
public string MediaType { get; init; }

Property Value

string

Type

Gets the type of encoding of the document data.

public string Type { get; init; }

Property Value

string