agentle.agents.a2a

Agent-to-Agent (A2A) Interface

This package provides a standard protocol for agent interactions in the Agentle framework. It implements a task-based communication model where agents can exchange messages, artifacts, and structured data using a consistent interface.

The A2A protocol enables: - Standardized agent communication - Session-based conversations - Task management - Notification systems for asynchronous updates - Structured message and response formats

Example

```python from agentle.agents.agent import Agent from agentle.agents.a2a.a2a_interface import A2AInterface from agentle.agents.a2a.tasks.managment.task_manager import TaskManager

# Create an agent and task manager agent = Agent(…) task_manager = TaskManager()

# Initialize the A2A interface a2a = A2AInterface(agent=agent, task_manager=task_manager)

# Use the interface to manage tasks task = a2a.tasks.send(task_params) ```

Classes

A2AInterface(agent, *[, task_manager, options])

Agent-to-Agent Interface

Modules

a2a_interface

A2A Interface

a2a_interface_options

message_parts

messages

A2A Messages Package

models

notifications

A2A Notifications Package

resources

A2A Resources Package

tasks

A2A Tasks Package