Class JsonRpcResponse

Assembly: redb.Route.Llm.Mcp.dll

JSON-RPC 2.0 response envelope.

public sealed class JsonRpcResponse

Inheritance

Object→JsonRpcResponse

Properties

Error

Error envelope when the call failed.

[JsonPropertyName("error")]
public JsonRpcError? Error { get; set; }

Id

Correlation id matching the originating .

[JsonPropertyName("id")]
public long? Id { get; set; }

JsonRpc

Always "2.0".

[JsonPropertyName("jsonrpc")]
public string JsonRpc { get; set; }

Result

Successful method result. Mutually exclusive with .

[JsonPropertyName("result")]
public JsonNode? Result { get; set; }