namespace AnthropicClient.Models; /// /// Represents a request to create a batch of messages. /// public class MessageBatchRequest { /// /// Gets the requests to create messages. /// public List Requests { get; init; } = []; /// /// Initializes a new instance of the class. /// /// The requests to create messages. /// Thrown when is empty. /// An instance of the class. public MessageBatchRequest(List requests) { if (requests.Count == 0) { throw new ArgumentException($"{nameof(requests)} must not be empty.", nameof(requests)); } Requests = requests; } }