using ModelContextProtocol.Protocol; using System.Text.Json; namespace ModelContextProtocol.Server; /// /// Represents the state of a task in an . /// /// /// /// This is the store's representation of a task, decoupled from the MCP protocol wire types. /// The server infrastructure maps to the appropriate protocol response /// types (, ) when communicating with clients. /// /// public sealed record McpTaskInfo( string TaskId, McpTaskStatus Status, DateTimeOffset CreatedAt, DateTimeOffset LastUpdatedAt, TimeSpan? TimeToLive = null, long? PollIntervalMs = null, string? StatusMessage = null, JsonElement? Result = null, JsonElement? Error = null, IReadOnlyDictionary? InputRequests = null);