using System.Text.Json.Serialization; namespace ModelContextProtocol.Protocol; /// /// Represents a completion object in the server's response to a request. /// /// /// See the schema for details. /// public sealed class Completion { /// /// Gets or sets an array of completion values (auto-suggestions) for the requested input. /// /// /// This collection contains the actual text strings to be presented to users as completion suggestions. /// The array will be empty if no suggestions are available for the current input. /// Per the specification, this collection should not exceed 100 items. /// [JsonPropertyName("values")] public IList Values { get; set; } = []; /// /// Gets or sets the total number of completion options available. /// /// /// This value can exceed the number of values actually sent in the response. /// [JsonPropertyName("total")] public int? Total { get; set; } /// /// Gets or sets a value that indicates whether there are additional completion options beyond /// those provided in the current response, even if the exact total is unknown. /// [JsonPropertyName("hasMore")] public bool? HasMore { get; set; } }