Class: A2A::SendMessageResponse

Inherits:
JSONRPC::Response
  • Object
show all
Defined in:
lib/a2a/types/send_message_response.rb

Overview

Response to a ‘message/send` request. Returns either a direct Message reply or the initial Task object.

Instance Method Summary collapse

Instance Method Details

#errorJSONRPC::Error?

Returns Error information if the request failed.

Returns:

  • (JSONRPC::Error, nil)

    Error information if the request failed.



11
# File 'lib/a2a/types/send_message_response.rb', line 11

attribute? :error, Types::Constructor(JSONRPC::Error).optional

#resultMessage, ...

Returns The result, which can be a direct reply Message or the initial Task object.

Returns:

  • (Message, Task, nil)

    The result, which can be a direct reply Message or the initial Task object.



8
# File 'lib/a2a/types/send_message_response.rb', line 8

attribute? :result, Types::Any.optional