using System.Text.Json.Serialization; using AnthropicClient.Utils; namespace AnthropicClient.Models; /// /// Represents a citation delta. /// public class CitationDelta : ContentDelta { /// /// Gets the citation associated with this delta. /// public Citation Citation { get; init; } = new CharacterLocationCitation(); [JsonConstructor] internal CitationDelta() : base(ContentDeltaType.CitationDelta) { } /// /// Initializes a new instance of the class. /// public CitationDelta(Citation citation) : base(ContentDeltaType.CitationDelta) { ArgumentValidator.ThrowIfNull(citation, nameof(citation)); Citation = citation; } }