https://github.com/a2aproject/a2a-samples
Samples using the Agent2Agent (A2A) Protocol
https://github.com/a2aproject/a2a-samples
a2a a2a-client a2a-mcp a2a-protocol a2a-server agents generative-ai
Last synced: about 2 months ago
JSON representation
Samples using the Agent2Agent (A2A) Protocol
- Host: GitHub
- URL: https://github.com/a2aproject/a2a-samples
- Owner: a2aproject
- License: apache-2.0
- Created: 2025-05-27T19:04:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-04-10T16:14:23.000Z (about 2 months ago)
- Last Synced: 2026-04-10T17:28:08.048Z (about 2 months ago)
- Topics: a2a, a2a-client, a2a-mcp, a2a-protocol, a2a-server, agents, generative-ai
- Language: Jupyter Notebook
- Homepage: https://a2a-protocol.org
- Size: 28 MB
- Stars: 1,486
- Watchers: 20
- Forks: 641
- Open Issues: 207
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-mcp - a2aproject/a2a-samples - This repository provides code samples and demos for implementing and understanding the Agent2Agent (A2A) Protocol, focusing on secure communication between autonomous agents. (MCP Frameworks and libraries / Python)
- awesome-a2a-libraries - cA2A
- awesome-a2a - Agent2Agent (A2A) Samples - samples?style=social)](https://github.com/a2aproject/a2a-samples) - Official repository containing code samples and demos which use the Agent2Agent (A2A) Protocol. (🎬 Demos & Examples)
- awesome-a2a - A2A Samples - lang` `Apache-2.0` - Official sample agents for the A2A Protocol across Python, JS/TS, Java, .NET, and Go - including LangGraph, CrewAI, Google ADK, Semantic Kernel, and Genkit integrations. (🎓 Examples & Tutorials / Reference Implementations)
- awesome-agentic-commerce - A2A Samples - Code samples and demos (A2A - Agent2Agent Protocol / 💻 Samples & Tools)
- awesome-agent-payments-protocol - A2A Samples
- awesome-agentic-commerce - A2A Samples
README
# Agent2Agent (A2A) Samples
🌐 Language
English
| 简体中文
| 繁體中文
| 日本語
| 한국어
| हिन्दी
| ไทย
| Français
| Deutsch
| Español
| Italiano
| Русский
| Português
| Nederlands
| Polski
| العربية
| فارسی
| Türkçe
| Tiếng Việt
| Bahasa Indonesia
This repository contains code samples and demos which use the [Agent2Agent (A2A) Protocol](https://goo.gle/a2a).
## Related Repositories
- [A2A](https://github.com/a2aproject/A2A) - A2A Specification and documentation.
- [a2a-python](https://github.com/a2aproject/a2a-python) - A2A Python SDK.
- [a2a-inspector](https://github.com/a2aproject/a2a-inspector) - UI tool for inspecting A2A enabled agents.
## Contributing
Contributions welcome! See the [Contributing Guide](CONTRIBUTING.md).
## Getting help
Please use the [issues page](https://github.com/a2aproject/a2a-samples/issues) to provide suggestions, feedback or submit a bug report.
## Disclaimer
This repository itself is not an officially supported Google product. The code in this repository is for demonstrative purposes only.
Important: The sample code provided is for demonstration purposes and illustrates the mechanics of the Agent-to-Agent (A2A) protocol. When building production applications, it is critical to treat any agent operating outside of your direct control as a potentially untrusted entity.
All data received from an external agent—including but not limited to its AgentCard, messages, artifacts, and task statuses—should be handled as untrusted input. For example, a malicious agent could provide an AgentCard containing crafted data in its fields (e.g., description, name, skills.description). If this data is used without sanitization to construct prompts for a Large Language Model (LLM), it could expose your application to prompt injection attacks. Failure to properly validate and sanitize this data before use can introduce security vulnerabilities into your application.
Developers are responsible for implementing appropriate security measures, such as input validation and secure handling of credentials to protect their systems and users.