Class: A2A::JSONRPCResponse
- Inherits:
-
JSONRPCMessage
- Object
- Dry::Struct
- ProtocolStruct
- JSONRPCMessage
- A2A::JSONRPCResponse
- Defined in:
- lib/a2a/types/jsonrpc_response.rb
Overview
Represents a JSON-RPC response object.
Direct Known Subclasses
CancelTaskResponse, GetTaskPushNotificationResponse, GetTaskResponse, SendTaskResponse, SendTaskStreamingResponse, SetTaskPushNotificationResponse
Instance Method Summary collapse
-
#error ⇒ JSONRPCError?
An error object if an error occurred during the request.
-
#result ⇒ Object?
The result of the method invocation.
Methods inherited from JSONRPCMessage
Methods included from Extensions::CaseTransformation
Instance Method Details
#error ⇒ JSONRPCError?
Returns An error object if an error occurred during the request. Required on failure.
10 |
# File 'lib/a2a/types/jsonrpc_response.rb', line 10 attribute? :error, Types::Constructor(JSONRPCError).optional |
#result ⇒ Object?
Returns The result of the method invocation. Required on success.
7 |
# File 'lib/a2a/types/jsonrpc_response.rb', line 7 attribute? :result, Types::Nominal::Any.optional |