using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; namespace ModelContextProtocol.Protocol; /// /// Represents the parameters for a tasks/result request to retrieve the result of a completed task. /// /// /// /// This request blocks until the task reaches a terminal status (, /// , or ). /// /// /// The result structure matches the original request type (e.g., for tools/call). /// This is distinct from the initial response, which contains only task data. /// /// [Experimental(Experimentals.Tasks_DiagnosticId, UrlFormat = Experimentals.Tasks_Url)] public sealed class GetTaskPayloadRequestParams : RequestParams { /// /// Gets or sets the unique identifier of the task whose result to retrieve. /// [JsonPropertyName("taskId")] public required string TaskId { get; set; } }