Class CompletedTaskResult
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents a task that has completed successfully, carrying the final result.
public sealed class CompletedTaskResult : GetTaskResult
- Inheritance
-
CompletedTaskResult
- Inherited Members
Remarks
The Result field contains the result structure matching the original request type.
For example, a tools/call task would contain the CallToolResult structure.
This includes tool calls that returned results with isError: true.
See the SEP-2663 specification for details.
Properties
Result
Gets or sets the final result of the task as raw JSON.
[JsonPropertyName("result")]
public required JsonElement Result { get; set; }
Property Value
Remarks
The structure matches the result type of the original request.
Status
Gets or sets the current task status.
[JsonPropertyName("status")]
public override McpTaskStatus Status { get; }