Class: A2A::TaskStatusUpdateEvent
- Inherits:
-
ProtocolStruct
- Object
- Dry::Struct
- ProtocolStruct
- A2A::TaskStatusUpdateEvent
- Defined in:
- lib/a2a/types/task_status_update_event.rb
Overview
An event sent by the agent to notify the client of a change in a task’s status. This is typically used in streaming or subscription models.
Instance Method Summary collapse
-
#context_id ⇒ String
The context ID associated with the task.
-
#final ⇒ Boolean
If true, this is the final event in the stream for this interaction.
-
#kind ⇒ String
The type of this event, used as a discriminator.
-
#metadata ⇒ Hash?
Optional metadata for extensions.
-
#status ⇒ TaskStatus
The new status of the task.
-
#task_id ⇒ String
The ID of the task that was updated.
Methods included from Extensions::CaseTransformation
Instance Method Details
#context_id ⇒ String
Returns The context ID associated with the task.
11 |
# File 'lib/a2a/types/task_status_update_event.rb', line 11 attribute :context_id, Types::String |
#final ⇒ Boolean
Returns If true, this is the final event in the stream for this interaction.
20 |
# File 'lib/a2a/types/task_status_update_event.rb', line 20 attribute :final, Types::Bool |
#kind ⇒ String
Returns The type of this event, used as a discriminator. Always ‘status-update’.
14 |
# File 'lib/a2a/types/task_status_update_event.rb', line 14 attribute :kind, Types::String.constant('status-update') |
#metadata ⇒ Hash?
Returns Optional metadata for extensions.
23 |
# File 'lib/a2a/types/task_status_update_event.rb', line 23 attribute? :metadata, Types::Hash.optional |
#status ⇒ TaskStatus
Returns The new status of the task.
17 |
# File 'lib/a2a/types/task_status_update_event.rb', line 17 attribute :status, Types::Constructor(TaskStatus) |
#task_id ⇒ String
Returns The ID of the task that was updated.
8 |
# File 'lib/a2a/types/task_status_update_event.rb', line 8 attribute :task_id, Types::String |