Multi-agent system with A2A Protocol, OpenTelemetry tracing, and AI-powered code generation workflows
Repo traceloop/a2a-multi-agent-example, read from GitHub 2 d ago. traceloop has not joined Take My Repo.
traceloop/a2a-multi-agent-example is a public repo on GitHub by traceloop. Multi-agent system with A2A Protocol, OpenTelemetry tracing, and AI-powered code generation workflows. It declares the Apache-2.0 license on GitHub. It is written mainly in Python, has 4 stars and last changed on 2026-02-15. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
A comprehensive multi-agent system demonstrating Agent-to-Agent (A2A) Protocol, OpenLLMetry tracing, and MCP integration through realistic AI-powered development workflows. Built for conference demonstrations and production-ready distributed agent systems.
This system features two powerful workflows with specialized agents:
Three review agents collaborate to analyze existing code:
Five agents collaborate using A2A Protocol in a complete AI-powered development lifecycle:
The agents use authentic A2A Protocol for discovery, authentication, and message passing, with full cross-agent trace propagation via OpenTelemetry.
# Clone or download this project
cd multi-agent-example
# Install with uv (recommended)
uv sync --dev
# OR install with pip
pip install -e .
# Copy the example environment file
cp .env.example .env
# Edit .env with your actual API keys
# Required keys:
# - OPENAI_API_KEY=sk-your-openai-api-key-here
# - TRACELOOP_API_KEY=tl_your-traceloop-api-key-here
# Get your keys from:
# - OpenAI: https://platform.openai.com/account/api-keys
# - Traceloop: https://app.traceloop.com/settings/api-keys
Alternative: Export directly (temporary)
export OPENAI_API_KEY="your_openai_api_key_here"
export TRACELOOP_API_KEY="your_traceloop_api_key_here"
# Enhanced security scanning (optional)
uv add bandit semgrep
# Or with pip
pip install bandit semgrep
# Run the complete A2A multi-agent development demo
uv run python test_a2a_complete.py
# Or test with specific requirements
uv run python -c "
import asyncio
from multi_agent_example.a2a_main import A2AMultiAgentOrchestrator
async def main():
orchestrator = A2AMultiAgentOrchestrator()
await orchestrator.initialize()
# Run development workflow
result = await orchestrator.run_development_workflow(
task_description='Create a secure authentication system',
requirements=[
'Implement JWT token authentication',
'Add password hashing with bcrypt',
'Include rate limiting protection',
'Add comprehensive error handling'
]
)
await orchestrator.shutdown()
asyncio.run(main())
"
# Set your Traceloop API key first
export TRACELOOP_API_KEY="your_key_here"
# Run with Traceloop export
uv run python test_traceloop_export.py
# Check dashboard at: https://app.traceloop.com
# Test A2A system without Traceloop (uses demo key)
uv run python test_a2a_complete.py
a2a-sdk for genuine agent-to-agent communication/.well-known/agent-card.json)๐งช Testing Complete A2A Protocol Multi-Agent System
๐ Demonstrating authentic Agent-to-Agent Protocol communication
================================================================================
๐ A2A Multi-Agent System
๐ฏ Initializing Agent-to-Agent Protocol Communication
Traceloop exporting traces to https://api.traceloop.com authenticating with bearer token
โ
Traceloop SDK initialized
๐ FastAPI instrumentation enabled
๐ก HTTPX client instrumentation enabled
๐ Cross-agent trace propagation activated
๐ Traces will be exported to Traceloop: https://api.traceloop.com
๐ View traces at: https://app.traceloop.com
๐ค Initializing agents...
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ A2A Agent Startup โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ค Agent Security Scanner initializing with A2A Protocol โ
โ ๐ ID: security_scanner_2587bd69 โ
โ ๐ A2A Port: 8001 โ
โ ๐ Description: A2A-based security vulnerability scanner โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
๐ญ A2A Agent Network Overview
โโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโ
โ Agent โ Port โ Capabilities โ Status โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ Security Scanner โ 8001 โ vulnerability_scan, security_report โ โ Active โ
โ Code Reviewer Agent โ 8002 โ code_quality_review, ai_insights โ โ Active โ
โ Documentation Agent โ 8003 โ documentation_analysis โ โ Active โ
โ Dev Lead Agent โ 8005 โ orchestrate_development_workflow โ โ Active โ
โ Developer Agent โ 8006 โ generate_code, refactor_code โ โ Active โ
โโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโ
๐ Starting A2A Development Workflow...
โญโโโโโโโโโโโโโโโโโโโโโโโโ ๐ Development Task task_185 โโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ Create a calculator function for A2A demo โ
โ โก Priority: HIGH โ
โ Requirements: โ
โ โข Create a function that can add, subtract, multiply, and divide โ
โ โข Include proper error handling for division by zero โ
โ โข Add comprehensive docstring with examples โ
โ โข Use type hints for better code quality โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โก Phase 2: Code Generation
๐ค Dev Lead Agent โ Developer Agent: A2A Message
๐ง Sending request to GPT-4o-mini...
โ
Code generation completed successfully!
๐ Phase 3: Multi-Agent Review
๐ค Dev Lead Agent โ Security Scanner: A2A Message
๐ค Dev Lead Agent โ Code Reviewer Agent: A2A Message
๐ค Dev Lead Agent โ Documentation Agent: A2A Message
================================================================================
๐ A2A PROTOCOL MULTI-AGENT SYSTEM TEST SUCCESSFUL!
๐ Ready for conference demonstration!
================================================================================
๐ A2A Workflow Results:
โ
Status: completed
๐ง Workflow Phases: 4/4
๐ป Code Generated: โ
๐ Agent Reviews: 3
๐ฏ Final Assessment: GOOD
๐ A2A Agent Network Status:
โข Active Agents: 5
โข A2A Protocol: โ
Operational
โข Cross-Agent Tracing: โ
Active
โข AI Integration: โ
Available
Recommended: Use .env file (automatically loaded)
# Copy and edit the environment file
cp .env.example .env
# The .env file contains:
OPENAI_API_KEY=sk-your-openai-api-key-here
TRACELOOP_API_KEY=tl_your-traceloop-api-key-here
TRACELOOP_BASE_URL=https://api.traceloop.com
ENVIRONMENT=development
DEBUG=false
Alternative: Export directly
export OPENAI_API_KEY="your_openai_api_key"
export TRACELOOP_API_KEY="your_traceloop_api_key"
Once running with TRACELOOP_API_KEY, visit https://app.traceloop.com to see:
With your API key configured, the dashboard will show:
This system was designed for conference presentations and includes:
a2a-sdk, not custom HTTP APIsa2a-sdk for authentic agent communicationtraceloop/a2a-multi-agent-example is a public repo on GitHub by traceloop. Multi-agent system with A2A Protocol, OpenTelemetry tracing, and AI-powered code generation workflows.
It declares the Apache-2.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-02-15. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run a2a-multi-agent-example. What is known comes from GitHub. It declares the Apache-2.0 license on GitHub. Its last change was on 2026-02-15. It has 4 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.