using System.Text.Json.Serialization; using AnthropicClient.Utils; namespace AnthropicClient.Models; /// /// Represents a custom source that contains a list of text content. /// public class CustomSource : Source { /// /// Gets the list of text content that makes up the custom source. /// public List Content { get; init; } = []; [JsonConstructor] internal CustomSource() : base(SourceType.Content) { } /// /// Initializes a new instance of the class. /// /// A new instance of the class. /// Thrown when the content is null. public CustomSource(List content) : base(SourceType.Content) { ArgumentValidator.ThrowIfNull(content, nameof(content)); Content = content; } }