agentle.agents.a2a.tasks.managment.task_managerΒΆ

A2A Task Manager

This module defines the TaskManager abstract base class, which provides the interface for managing tasks in the A2A protocol. The TaskManager is responsible for handling the lifecycle of tasks, including creation, retrieval, and notification subscription.

Functions

abstractmethod(funcobj)

A decorator indicating abstract methods.

Classes

ABC()

Helper class that provides a standard way to create an ABC using inheritance.

Any(*args, **kwargs)

Special type indicating an unconstrained type.

JSONRPCResponse(*, id[, result, error])

Represents a response in the JSON-RPC format.

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

Represents a unit of work in the A2A protocol.

TaskGetResult(*[, id, error])

Result of a task query in the A2A protocol.

TaskManager()

Abstract base class for task management in the A2A protocol.

TaskQueryParams(*, id[, historyLength, metadata])

Parameters for querying a task in the A2A protocol.

TaskSendParams(*[, id, sessionId, ...])

Parameters for sending a task to an agent in the A2A protocol.