Class: A2A::TaskStatus

Inherits:
ProtocolStruct
  • Object
show all
Defined in:
lib/a2a/types/task_status.rb

Overview

Represents the status of a task at a specific point in time.

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#messageMessage?

Returns An optional message associated with the current status.

Returns:

  • (Message, nil)

    An optional message associated with the current status.



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

attribute? :message, Types::Constructor(Message).optional

#stateString

Returns The current state of the task.

Returns:

  • (String)

    The current state of the task.



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

attribute :state, TaskState

#timestampDateTime?

Returns The timestamp when this status was recorded (ISO 8601 format).

Returns:

  • (DateTime, nil)

    The timestamp when this status was recorded (ISO 8601 format).



13
# File 'lib/a2a/types/task_status.rb', line 13

attribute? :timestamp, Types::JSON::DateTime.optional