Implement SEP-2663 Tasks Extension (#1579)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ed07fdb6f4
commit
dbb7a20176
1 changed files with 8190 additions and 11405 deletions
|
|
@ -143,39 +143,12 @@ public static class NotificationMethods
|
|||
public const string CancelledNotification = "notifications/cancelled";
|
||||
|
||||
/// <summary>
|
||||
/// The name of the notification sent when a task status changes.
|
||||
/// The name of the notification sent by the server to push task status updates to subscribed clients.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// When a task status changes, receivers may send this notification to inform the requestor
|
||||
/// of the change. This notification includes the full task state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Requestors must not rely on receiving this notification, as it is optional. Receivers
|
||||
/// are not required to send status notifications and may choose to only send them for
|
||||
/// certain status transitions. Requestors should continue to poll via tasks/get to ensure
|
||||
/// they receive status updates.
|
||||
/// </para>
|
||||
/// Part of the <c>io.modelcontextprotocol/tasks</c> extension.
|
||||
/// Each notification carries a complete task state for the current status, identical to what
|
||||
/// <c>tasks/get</c> would have returned at that moment.
|
||||
/// </remarks>
|
||||
public const string TaskStatusNotification = "notifications/tasks/status";
|
||||
|
||||
/// <summary>
|
||||
/// The metadata key used to associate requests, responses, and notifications with a task.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This constant defines the key <c>"io.modelcontextprotocol/related-task"</c> used in the
|
||||
/// <c>_meta</c> field to associate messages with their originating task across the entire
|
||||
/// request lifecycle.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// For example, an elicitation that a task-augmented tool call depends on must share the
|
||||
/// same related task ID with that tool call's task.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// For <c>tasks/get</c>, <c>tasks/list</c>, and <c>tasks/cancel</c> operations, this
|
||||
/// metadata should not be included as the taskId is already present in the message structure.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public const string RelatedTaskMetaKey = "io.modelcontextprotocol/related-task";
|
||||
public const string TaskStatusNotification = "notifications/tasks";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue