python-a2a
Python A2A is a powerful, easy-to-use library for implementing Google's [Agent-to-Agent (A2A) protocol](https://google.github.io/A2A/). It enables seamless communication between AI agents, creating interoperable agent ecosystems that can collaborate to solve complex problems.
File Explorer
Download Latest Version (.zip)- build.yml
- python-tests-uv.yml
- config.toml
- UVManifest.toml
- advanced.rst
- agent_discovery.rst
- index.rst
- langchain.rst
- langchain_agents.rst
- simple.rst
- advanced.rst
- agent_discovery.rst
- agent_flow.rst
- basics.rst
- index.rst
- langchain.rst
- mcp.rst
- conf.py
- contributing.rst
- index.rst
- installation.rst
- quickstart.rst
- requirements.txt
- uv-installation.rst
- agent_discovery.py
- agent_network.py
- agent_registry.py
- smart_routing.py
- anthropic_agent.py
- bedrock_agent.py
- llm_client.py
- openai_agent.py
- openai_travel_planner.py
- weather_assistant.py
- agent_discovery.py
- agent_skills.py
- messages_and_conversations.py
- tasks.py
- cli_tools.py
- interactive_docs.py
- testing_agents.py
- function_calling.py
- hello_a2a.py
- simple_client.py
- simple_server.py
- a2a_to_langchain.py
- langchain_advanced_agent.py
- langchain_agent_with_tools.py
- langchain_streaming.py
- langchain_to_a2a.py
- langchain_tools_to_mcp.py
- mcp_to_langchain.py
- agent_with_mcp_tools.py
- browserbase_example.py
- code_review_assistant.py
- filesystem_example.py
- github_example.py
- intelligent_mcp_agent.py
- kite_mcp_example.py
- mcp.py
- mcp_agent.py
- mcp_client_example.py
- mcp_tools.py
- openai_mcp_agent.py
- playwright_example.py
- puppeteer_example.py
- push_notification_example.py
- 01_basic_streaming.py
- 02_advanced_streaming.py
- 03_streaming_llm_integration.py
- 04_task_based_streaming.py
- 05_streaming_ui_integration.py
- 06_distributed_streaming.py
- basic_streaming.py
- README.md
- agents_workflow.py
- basic_workflow.py
- parallel_workflow.py
- README.md
- validate_all_examples.py
- 01_basic_agent_conversation.ipynb
- 02_llm_powered_agents.ipynb
- __init__.py
- executor.py
- __init__.py
- __init__.py
- agent.py
- tool.py
- workflow.py
- __init__.py
- flow-builder.css
- main.css
- network-execution.css
- __init__.py
- favicon.ico
- __init__.py
- flow-builder.js
- network-execution.js
- simple-workflow-editor.js
- workflow-editor.js
- __init__.py
- 404.html
- 500.html
- __init__.py
- agents.html
- index.html
- tools.html
- workflows.html
- __init__.py
- agent_api.py
- api.py
- web.py
- __init__.py
- workflow_storage.py
- __init__.py
- agent_manager.py
- __init__.py
- cli.py
- README.md
- __init__.py
- anthropic.py
- bedrock.py
- ollama.py
- openai.py
- __init__.py
- base.py
- http.py
- network.py
- router.py
- streaming.py
- __init__.py
- client.py
- registry.py
- server.py
- __init__.py
- openai.py
- __init__.py
- a2a.py
- exceptions.py
- mcp.py
- README.md
- __init__.py
- base.py
- browserbase.py
- filesystem.py
- github.py
- playwright.py
- puppeteer.py
- __init__.py
- fastapi.py
- __init__.py
- agent.py
- client.py
- client_transport.py
- clients.py
- connection.py
- fastmcp.py
- integration.py
- protocol.py
- proxy.py
- server.py
- server_config.py
- transports.py
- __init__.py
- agent.py
- base.py
- content.py
- conversation.py
- message.py
- task.py
- __init__.py
- anthropic.py
- bedrock.py
- ollama.py
- openai.py
- __init__.py
- a2a_server.py
- base.py
- http.py
- ui_templates.py
- __init__.py
- __init__.py
- __init__.py
- __init__.py
- __init__.py
- __init__.py
- conversion.py
- decorators.py
- formatting.py
- validation.py
- __init__.py
- flow.py
- steps.py
- __init__.py
- cli.py
- client.py
- exceptions.py
- py.typed
- test_streaming_client.py
- __init__.py
- basic_test.py
- conftest.py
- test_cli.py
- test_client.py
- test_discovery.py
- test_exceptions.py
- test_google_a2a_compatibility.py
- test_langchain.py
- test_mcp_client.py
- test_models.py
- test_server.py
- test_utils.py
- .gitignore
- .readthedocs.yml
- CONTRIBUTING.md
- diagnose_a2a.py
- DOCUMENTATION.md
- LICENSE
- Makefile
- MANIFEST.in
- PUBLICATION_GUIDE.md
- pyproject.toml
- README.md
- README_de.md
- README_es.md
- README_fr.md
- README_ja.md
- README_zh.md
- release.sh
- requirements.txt
- RUN_UI.md
- setup.py
- start_ui.py
- uv.lock
# Installation Guide
git clone https://github.com/themanojdesai/python-a2a
Downloads the entire project code from GitHub to your computer.
cd python-a2a
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommended- Python 3 Python is required to use pip.
pip install python-a2a # Includes LangChain, MCP, and other integrations
Installs the package published on PyPI directly โ no need to clone the source.
pip install "python-a2a[server]"
Installs the package published on PyPI directly โ no need to clone the source.
pip install "python-a2a[openai]"
Installs the package published on PyPI directly โ no need to clone the source.
pip install "python-a2a[anthropic]"
Installs the package published on PyPI directly โ no need to clone the source.
Pulled directly from this repo's README.
3. Python
Easypip install python-a2a # Includes LangChain, MCP, and other integrations
Installs the package published on PyPI directly โ no need to clone the source.
pip install "python-a2a[server]"
Installs the package published on PyPI directly โ no need to clone the source.
pip install "python-a2a[openai]"
Installs the package published on PyPI directly โ no need to clone the source.
pip install "python-a2a[anthropic]"
Installs the package published on PyPI directly โ no need to clone the source.
pip install "python-a2a[bedrock]"
Installs the package published on PyPI directly โ no need to clone the source.
Pulled directly from this repo's README.
4. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make
Compiles the code based on the generated build configuration to produce an executable.
