Show / Hide Table of Contents

Class Task

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.

Inheritance
object
Task
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.WorkspaceEvents.v1.Data
Assembly: Google.Apis.WorkspaceEvents.v1.dll
Syntax
public class Task : IDirectResponseSchema

Properties

Artifacts

A set of output artifacts for a Task.

Declaration
[JsonProperty("artifacts")]
public virtual IList<Artifact> Artifacts { get; set; }
Property Value
Type Description
IList<Artifact>

ContextId

Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.

Declaration
[JsonProperty("contextId")]
public virtual string ContextId { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

History

protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a task.

Declaration
[JsonProperty("history")]
public virtual IList<Message> History { get; set; }
Property Value
Type Description
IList<Message>

Id

Unique identifier (e.g. UUID) for the task, generated by the server for a new task.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
string

Metadata

protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task.

Declaration
[JsonProperty("metadata")]
public virtual IDictionary<string, object> Metadata { get; set; }
Property Value
Type Description
IDictionary<string, object>

Status

The current status of a Task, including state and a message.

Declaration
[JsonProperty("status")]
public virtual TaskStatus Status { get; set; }
Property Value
Type Description
TaskStatus

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX