Class Base64Source
- Namespace
- AnthropicClient.Models
- Assembly
- AnthropicClient.dll
Represents a base64 source.
public class Base64Source : Source
- Inheritance
-
Base64Source
- Derived
- Inherited Members
Constructors
Base64Source(string, string)
Initializes a new instance of the Base64Source class.
public Base64Source(string mediaType, string data)
Parameters
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 source.
public string Data { get; init; }
Property Value
MediaType
Gets the media type of the source.
[JsonPropertyName("media_type")]
public string MediaType { get; init; }