Class: A2A::JSONRPCResponse

Inherits:
JSONRPCMessage
  • Object
show all
Defined in:
lib/a2a/types/jsonrpc_response.rb

Overview

Represents a JSON-RPC response object.

Instance Method Summary collapse

Methods inherited from JSONRPCMessage

#id, #jsonrpc

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#errorJSONRPCError?

Returns An error object if an error occurred during the request. Required on failure.

Returns:

  • (JSONRPCError, nil)

    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

#resultObject?

Returns The result of the method invocation. Required on success.

Returns:

  • (Object, nil)

    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