Task
Represents a single, stateful operation or conversation between a client and an agent.
A task encapsulates the entire interaction related to a specific goal or request. Tasks progress through defined lifecycle states and cannot be restarted once they reach a terminal state (completed, canceled, rejected, or failed).
Constructors
Properties
A collection of artifacts generated by the agent during the execution of the task.
A server-generated identifier for maintaining context across multiple related tasks or interactions.
An array of messages exchanged during the task, representing the conversation history.
A unique identifier for the task, generated by the server for a new task.
The type of this object, used as a discriminator. Always 'task' for a Task.
Optional metadata for extensions. The key is an extension-specific identifier.
The current status of the task, including its state and a descriptive message.