Class Result
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Provides a base class for result payloads.
public abstract class Result
- Inheritance
-
Result
- Derived
- Inherited Members
Constructors
Result()
Initializes the base result type.
protected Result()
Properties
Meta
Gets or sets metadata reserved by MCP for protocol-level metadata.
[JsonPropertyName("_meta")]
public JsonObject? Meta { get; set; }
Property Value
Remarks
Implementations must not make assumptions about its contents.
ResultType
Gets or sets the type of the result, which allows the client to determine how to parse the result object.
[JsonPropertyName("resultType")]
public string? ResultType { get; set; }
Property Value
Remarks
When absent or set to "complete", the result is a normal completed response.
Other values discriminate alternate result subtypes so callers can choose the appropriate
concrete payload to deserialize.