using Microsoft.Extensions.AI; using System.Text.Json.Serialization; namespace ModelContextProtocol.Protocol; /// /// Represents a server's response to a request from the client. /// /// /// /// For integration with AI client libraries, can be converted to /// a collection of objects using the extension method. /// /// /// See the schema for details. /// /// public class GetPromptResult { /// /// Gets or sets an optional description for the prompt. /// /// /// /// This description provides contextual information about the prompt's purpose and use cases. /// It helps developers understand what the prompt is designed for and how it should be used. /// /// /// When returned from a server in response to a request, /// this description can be used by client applications to provide context about the prompt or to /// display in user interfaces. /// /// [JsonPropertyName("description")] public string? Description { get; set; } /// /// Gets or sets the prompt that the server offers. /// [JsonPropertyName("messages")] public List Messages { get; set; } = []; }