Class: A2A::JSONRPCRequest

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

Overview

Represents a JSON-RPC request object.

Instance Method Summary collapse

Methods inherited from JSONRPCMessage

#id, #jsonrpc

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#methodString

Returns The name of the method to be invoked.

Returns:

  • (String)

    The name of the method to be invoked.



7
# File 'lib/a2a/types/jsonrpc_request.rb', line 7

attribute :method, Types::String

#paramsHash?

Returns Parameters for the method. Can be a structured object, an array, or null/omitted.

Returns:

  • (Hash, nil)

    Parameters for the method. Can be a structured object, an array, or null/omitted.



10
# File 'lib/a2a/types/jsonrpc_request.rb', line 10

attribute? :params, Types::Hash.optional