org.llm4s.mcp.JsonRpcResponse
See theJsonRpcResponse companion object
case class JsonRpcResponse(jsonrpc: String, id: String, result: Option[Value], error: Option[JsonRpcError])
JSON-RPC 2.0 response structure returned by MCP servers. Contains either a result or error, never both.
Value parameters
- error
-
Optional error information when failed
- id
-
Identifier matching the original request
- jsonrpc
-
Protocol version, always "2.0"
- result
-
Optional result data when successful
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article