a2a-pydantic-ai

commitbyrajat
1
A2A-Pydantic-AI is a modular multi-agent framework that demonstrates agent-to-agent communication using pydantic-ai, fastmcp2, and fasta2a. It features a helpdesk assistant that delegates restaurant queries to a dedicated food agent via structured HTTP messages.

Overview

What is a2a-pydantic-ai

A2A-Pydantic-AI is a modular multi-agent framework designed for agent-to-agent communication. It utilizes pydantic-ai, fastmcp2, and fasta2a to create a helpdesk assistant that can delegate restaurant-related queries to a specialized food agent through structured HTTP messages.

How to Use

To use A2A-Pydantic-AI, clone the repository and ensure you have Python 3.8+ and Rye installed. Follow the bootstrapping steps to start the restaurant MCP tool server, the restaurant A2A agent, the helpdesk MCP tool server, and the helpdesk A2A agent in sequence.

Key Features

Key features include modular agent communication, the ability to delegate tasks between agents, a helpdesk agent for hotel-related queries, and a specialized restaurant agent for food inquiries. The system is built using structured message schemas over HTTP.

Where to Use

A2A-Pydantic-AI can be used in customer service applications, particularly in hospitality and food service industries, where modular agents can enhance user experience through efficient task delegation.

Use Cases

Use cases include a hotel helpdesk assistant that manages check-ins and local information while delegating restaurant queries to a dedicated restaurant agent, thereby providing a seamless user experience.

Content