Class McpClientResponse
java.lang.Object
dev.langchain4j.mcp.protocol.McpJsonRpcMessage
dev.langchain4j.mcp.protocol.McpClientMessage
dev.langchain4j.mcp.protocol.McpClientResponse
- Direct Known Subclasses:
McpPingResponse, McpRootsListResponse
Corresponds to the
JSONRPCResponse type from the MCP schema.
The ID is the one of the server request being responded to, and it is sent back exactly as the server sent it, because a JSON-RPC ID can be a string as well as a number.
-
Field Summary
Fields inherited from class McpClientMessage
methodFields inherited from class McpJsonRpcMessage
jsonrpc -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class McpJsonRpcMessage
setId
-
Constructor Details
-
McpClientResponse
-
McpClientResponse
-
-
Method Details
-
getId
- Overrides:
getIdin classMcpJsonRpcMessage
-
getRequestId
-