Implement MCP task support (SEP-1686) (#1170)
Co-authored-by: Stephen Halter <halter73@gmail.com>
This commit is contained in:
parent
81664c3fce
commit
10e4f5b20f
1 changed files with 11580 additions and 46 deletions
|
|
@ -66,4 +66,20 @@ public sealed class ClientCapabilities
|
|||
/// </summary>
|
||||
[JsonPropertyName("elicitation")]
|
||||
public ElicitationCapability? Elicitation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the client's tasks capability for supporting task-augmented requests.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The tasks capability enables servers to augment their requests with tasks for long-running
|
||||
/// operations. When present, servers can request that certain operations (like sampling or
|
||||
/// elicitation) execute asynchronously, with the ability to poll for status and retrieve results later.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// See <see cref="McpTasksCapability"/> for details on configuring which operations support tasks.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[JsonPropertyName("tasks")]
|
||||
public McpTasksCapability? Tasks { get; set; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue