Class: A2A::Task
- Inherits:
-
ProtocolStruct
- Object
- Dry::Struct
- ProtocolStruct
- A2A::Task
- Defined in:
- lib/a2a/types/task.rb
Overview
Represents a task being processed by an agent.
Instance Method Summary collapse
-
#artifacts ⇒ Array<Artifact>?
(e.g., outputs, intermediate files).
-
#history ⇒ Array<Message>?
Optional history of messages exchanged during the task.
-
#id ⇒ String
Unique identifier for the task.
-
#metadata ⇒ Hash?
Optional metadata associated with the task.
-
#session_id ⇒ String?
Optional identifier for the session this task belongs to.
-
#status ⇒ TaskStatus
The current status of the task.
Methods included from Extensions::CaseTransformation
Instance Method Details
#artifacts ⇒ Array<Artifact>?
(e.g., outputs, intermediate files).
17 |
# File 'lib/a2a/types/task.rb', line 17 attribute? :artifacts, Types::Array.of(Types::Constructor(Artifact)).optional |
#history ⇒ Array<Message>?
Returns Optional history of messages exchanged during the task.
20 |
# File 'lib/a2a/types/task.rb', line 20 attribute? :history, Types::Array.of(Types::Constructor(Message)).optional |
#id ⇒ String
Returns Unique identifier for the task.
7 |
# File 'lib/a2a/types/task.rb', line 7 attribute :id, Types::String |
#metadata ⇒ Hash?
Returns Optional metadata associated with the task.
23 |
# File 'lib/a2a/types/task.rb', line 23 attribute? :metadata, Types::Hash.optional |
#session_id ⇒ String?
Returns Optional identifier for the session this task belongs to.
10 |
# File 'lib/a2a/types/task.rb', line 10 attribute? :session_id, Types::String.optional |
#status ⇒ TaskStatus
Returns The current status of the task.
13 |
# File 'lib/a2a/types/task.rb', line 13 attribute :status, Types::Constructor(TaskStatus) |