Class FailedTaskResult
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents a task that failed due to a JSON-RPC error during execution.
public sealed class FailedTaskResult : GetTaskResult
- Inheritance
-
FailedTaskResult
- Inherited Members
Remarks
The Error field contains the JSON-RPC error object that caused the failure. This status must not be used for non-JSON-RPC errors.
See the SEP-2663 specification for details.
Properties
Error
Gets or sets the JSON-RPC error that caused the task to fail.
[JsonPropertyName("error")]
public required JsonElement Error { get; set; }
Property Value
Status
Gets or sets the current task status.
[JsonPropertyName("status")]
public override McpTaskStatus Status { get; }