using System.Text.Json.Serialization; using AnthropicClient.Utils; namespace AnthropicClient.Models; /// /// Represents an input property. /// public class InputProperty { /// /// Gets the type of the input property. /// public string Type { get; init; } = string.Empty; /// /// Gets the description of the input property. /// public string Description { get; init; } = string.Empty; [JsonConstructor] internal InputProperty() { } /// /// Initializes a new instance of the class. /// /// The type of the input property. /// The description of the input property. /// Thrown when the type or description is null. /// A new instance of the class. public InputProperty(string type, string description) { ArgumentValidator.ThrowIfNull(type, nameof(type)); ArgumentValidator.ThrowIfNull(description, nameof(description)); Type = type; Description = description; } }