Class: A2A::CancelTaskResponse

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

Overview

Response to a tasks/cancel request. Contains the updated Task object or an error.

Instance Method Summary collapse

Instance Method Details

#error ⇒ JSONRPC::Error?

Returns Error information if the request failed.

Returns:

  • (JSONRPC::Error, nil) —

    Error information if the request failed.



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

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

#result ⇒ Task?

Returns The canceled task information if successful.

Returns:

  • (Task, nil) —

    The canceled task information if successful.



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

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