A2ATask class
Represents a single, stateful operation or conversation between a client and an agent.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- A2ATask.new()
-
A2ATask.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
artifacts
↔ List<
A2AArtifact> ? -
A collection of artifacts generated by the agent during the execution of the task.
getter/setter pair
- contextId ↔ String
-
A server-generated unique identifier (e.g. UUID) for maintaining
context across multiple related tasks or interactions.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
history
↔ List<
A2AMessage> ? -
An array of messages exchanged during the task, representing the conversation history.
getter/setter pair
- id ↔ String
-
A unique identifier (e.g. UUID) for the task, generated by the server for a new task.
getter/setter pair
- kind ↔ String
-
The type of this object, used as a discriminator. Always 'task' for a Task.
getter/setter pair
- metadata ↔ A2ASV?
-
Optional metadata for extensions. The key is an extension-specific identifier.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ A2ATaskStatus?
-
The current status of the task, including its state and a descriptive message
getter/setter pair
Methods
-
clone(
) → A2ATask - Deep clone.
-
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