Table of Contents

Class TextSource

Namespace
AnthropicClient.Models
Assembly
AnthropicClient.dll

Represents a text document source.

public class TextSource : Source
Inheritance
TextSource
Inherited Members

Constructors

TextSource(string)

Initializes a new instance of the TextSource class.

public TextSource(string data)

Parameters

data string

The data of the document.

Exceptions

ArgumentNullException

Thrown when the data is null.

Properties

Data

Gets the data of the source.

public string Data { get; init; }

Property Value

string

MediaType

Gets the media type of the source.

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

Property Value

string