agentle.agents.a2a.tasks.taskΒΆ

A2A Task Model

This module defines the Task class, which represents a unit of work in the A2A protocol. Tasks encapsulate conversations between users and agents, track status, and manage artifacts.

Functions

Field()

!!! abstract "Usage Documentation"

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

Artifact(*[, name, description, metadata, ...])

Represents an output artifact created by an agent.

BaseModel()

Alias for pydantic.BaseModel.

Message(*, role, parts[, metadata])

Represents a message exchanged between a user and an agent.

Sequence()

All the operations on a read-only sequence.

Task(*[, id, history, artifacts, metadata])

Represents a unit of work in the A2A protocol.

TaskState(*values)

Enum representing the possible states of a task in the A2A protocol.