a2a-protocol-demo5

keiu-jiyu
1
# Multi-Agent Collaborative Task Orchestration Example This project implements a workflow engine based on DAG (Directed Acyclic Graph), demonstrating how to encapsulate Agent capabilities using Pydantic, schedule asynchronous tasks in parallel, and handle dependency injection between tasks (from parallel collection to summary generation).

Overview

What is a2a-protocol-demo5

a2a-protocol-demo5 is a multi-agent collaborative task orchestration example that implements a workflow engine based on a Directed Acyclic Graph (DAG). It demonstrates how to encapsulate agent capabilities using Pydantic, schedule asynchronous tasks in parallel, and manage dependency injection between tasks.

How to Use

To use a2a-protocol-demo5, first prepare the environment by installing the required dependencies such as FastAPI, Uvicorn, and Pydantic. Then, start the server using the command 'python server.py'. This will initiate the workflow engine, allowing clients to send JSON-RPC requests to execute tasks.

Key Features

Key features of a2a-protocol-demo5 include: 1) Memory-Centric Orchestration, which efficiently manages data flow and context; 2) Parallel execution of tasks by multiple agents; 3) Context Funnel for compressing and managing large data inputs; 4) A modular architecture that separates concerns between different components.

Where to Use

a2a-protocol-demo5 can be used in various fields such as data collection, automated reporting, weather forecasting, and any application requiring coordination between multiple agents to complete complex workflows.

Use Cases

Use cases for a2a-protocol-demo5 include scenarios where multiple agents need to gather information concurrently, such as collecting research data and weather information simultaneously, and then processing this data to generate a coherent output without exceeding context limits.

Content