using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
///
/// Represents the parameters for a tasks/cancel request to signal intent to cancel an in-progress task.
///
///
///
/// Cancellation is cooperative: the request signals intent, and the server decides whether and when to honor it.
/// A server is not obligated to actually stop the work; it is only obligated to acknowledge the request.
/// Eventual transition to is not guaranteed.
///
///
/// The notifications/cancelled notification must not be used for task cancellation.
///
///
/// See the SEP-2663
/// specification for details.
///
///
public sealed class CancelTaskRequestParams : RequestParams
{
///
/// Gets or sets the identifier of the task to cancel.
///
[JsonPropertyName("taskId")]
public required string TaskId { get; set; }
}