using System.Text.Json.Serialization; namespace AnthropicClient.Models; /// /// Represents an event from the Anthropic API. /// public class AnthropicEvent { /// /// The type of the event. /// public string Type { get; init; } = string.Empty; /// /// The data associated with the event. /// public EventData Data { get; init; } = default!; [JsonConstructor] internal AnthropicEvent() { } /// /// Initializes a new instance of the class. /// /// The type of the event. /// The data associated with the event. /// A new instance of the class. public AnthropicEvent(string type, EventData data) { Type = type; Data = data; } }