agentle.agents.a2a.resources.task_resourceΒΆ

A2A Task Resource

This module defines the TaskResource class, which provides methods for interacting with tasks in the A2A protocol. The TaskResource acts as an interface for sending tasks to agents, retrieving task results, and managing task notifications.

Functions

run_sync(func[, timeout])

Runs a callable synchronously.

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

BaseModel()

Alias for pydantic.BaseModel.

ConfigDict

Alias for pydantic.ConfigDict.

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

Represents a response in the JSON-RPC format.

PushNotificationResource(*, agent)

Resource for configuring and managing push notifications.

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.

TaskResource(*, agent, manager)

Provides methods for interacting with tasks in the A2A protocol.

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

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