Class: A2A::SendTaskResponse

Inherits:
JSONRPCResponse show all
Defined in:
lib/a2a/types/send_task_response.rb

Overview

Response to a ‘tasks/send` request. Contains the Task object or an error.

Instance Method Summary collapse

Methods inherited from JSONRPCMessage

#id, #jsonrpc

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#errorJSONRPCError?

Returns Error information if the request failed.

Returns:

  • (JSONRPCError, nil)

    Error information if the request failed.



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

attribute? :error, Types::Constructor(JSONRPCError).optional

#resultTask?

Returns The resulting task if successful.

Returns:

  • (Task, nil)

    The resulting task if successful.



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

attribute? :result, Types::Constructor(Task).optional