Class: A2A::Task
- Inherits:
-
ProtocolStruct
- Object
- Dry::Struct
- ProtocolStruct
- A2A::Task
- Defined in:
- lib/a2a/types/task.rb
Overview
Represents a single, stateful operation or conversation between a client and an agent.
Instance Method Summary collapse
-
#artifacts ⇒ Array<Artifact>?
A collection of artifacts generated by the agent during the execution of the task.
-
#context_id ⇒ String
A server-generated unique identifier (e.g. UUID) for maintaining context across multiple related tasks or interactions.
-
#history ⇒ Array<Message>?
An array of messages exchanged during the task, representing the conversation history.
-
#id ⇒ String
A unique identifier (e.g. UUID) for the task, generated by the server for a new task.
-
#kind ⇒ String
The type of this object, used as a discriminator.
-
#metadata ⇒ Hash?
Optional metadata for extensions.
-
#status ⇒ TaskStatus
The current status of the task, including its state and a descriptive message.
Methods included from Extensions::CaseTransformation
Instance Method Details
#artifacts ⇒ Array<Artifact>?
21 |
# File 'lib/a2a/types/task.rb', line 21 attribute? :artifacts, Types::Array.of(Types::Constructor(Artifact)).optional |
#context_id ⇒ String
11 |
# File 'lib/a2a/types/task.rb', line 11 attribute :context_id, Types::String |
#history ⇒ Array<Message>?
18 |
# File 'lib/a2a/types/task.rb', line 18 attribute? :history, Types::Array.of(Types::Constructor(Message)).optional |
#id ⇒ String
7 |
# File 'lib/a2a/types/task.rb', line 7 attribute :id, Types::String |
#kind ⇒ String
27 |
# File 'lib/a2a/types/task.rb', line 27 attribute :kind, Types::String.constant('task') |
#metadata ⇒ Hash?
24 |
# File 'lib/a2a/types/task.rb', line 24 attribute? :metadata, Types::Hash.optional |
#status ⇒ TaskStatus
14 |
# File 'lib/a2a/types/task.rb', line 14 attribute :status, Types::Constructor(TaskStatus) |