Task class
Task is the core unit of action for A2A.
It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.
Constructors
Properties
-
artifacts
↔ List<
Artifact> ? -
A set of output artifacts for a Task.
getter/setter pair
- contextId ↔ String?
-
Unique identifier (e.g. UUID) for the contextual collection of
interactions (tasks and messages).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
history
↔ List<
Message> ? -
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of
interactions from a task.
getter/setter pair
- id ↔ String?
-
Unique identifier (e.g. UUID) for the task, generated by the server for a
new task.
getter/setter pair
-
metadata
↔ Map<
String, Object?> ? -
protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to
store custom metadata about a task.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ TaskStatus?
-
The current status of a Task, including state and a message.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited