a2a-framework-integration
Integrate A2A with agent frameworks — Google ADK, LangGraph, CrewAI, AutoGen, AWS Bedrock AgentCore, and Microsoft Azure AI Foundry. Use when connecting framework-built agents to the A2A protocol for inter-agent communication.
Best use case
a2a-framework-integration is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Integrate A2A with agent frameworks — Google ADK, LangGraph, CrewAI, AutoGen, AWS Bedrock AgentCore, and Microsoft Azure AI Foundry. Use when connecting framework-built agents to the A2A protocol for inter-agent communication.
Teams using a2a-framework-integration should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/a2a-framework-integration/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How a2a-framework-integration Compares
| Feature / Agent | a2a-framework-integration | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Integrate A2A with agent frameworks — Google ADK, LangGraph, CrewAI, AutoGen, AWS Bedrock AgentCore, and Microsoft Azure AI Foundry. Use when connecting framework-built agents to the A2A protocol for inter-agent communication.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# A2A Framework Integration ## Before writing code **Fetch live docs**: 1. Fetch `https://a2a-protocol.org/latest/specification/` for the protocol spec 2. Web-search `site:github.com a2aproject a2a-samples` for framework integration examples 3. Web-search the specific framework's docs for A2A support: - `site:google.github.io adk a2a agent-to-agent` for Google ADK - `site:langchain-ai.github.io langgraph a2a` for LangGraph - `site:docs.crewai.com a2a` for CrewAI - `site:docs.aws.amazon.com bedrock agentcore a2a` for AWS Bedrock - `site:learn.microsoft.com azure ai-foundry a2a` for Microsoft Azure AI Foundry 4. Fetch SDK docs for framework adapter classes ## Conceptual Architecture ### Why Framework Integration Most production agents are built using frameworks (LangGraph, CrewAI, ADK, etc.). A2A framework integration allows these agents to: - **Expose themselves** as A2A servers (other agents can discover and call them) - **Call other agents** as A2A clients (delegate work to specialist agents) - **Participate in multi-agent systems** without rewriting framework-specific code ### Google ADK (Agent Development Kit) Google ADK has **native A2A support** since it was co-developed alongside A2A: - ADK agents can be directly exposed as A2A servers - ADK provides A2A client utilities for calling other agents - Agent Cards are generated from ADK agent configuration - Supports streaming, multi-turn, and push notifications **Integration approach**: Use ADK's built-in A2A server/client utilities. ### LangGraph / LangChain LangGraph agents can be wrapped as A2A servers: - The graph's invoke/stream methods map to `message/send` and `message/stream` - Graph state maps to A2A task state - Interrupts in LangGraph map to `input-required` in A2A **Integration approach**: Use A2A SDK adapters or build a thin wrapper that translates between LangGraph's interface and A2A's JSON-RPC protocol. ### CrewAI CrewAI's crew-based multi-agent model can integrate with A2A: - Individual crew members can be exposed as A2A agents - Entire crews can be wrapped as a single A2A agent - A2A enables cross-crew communication **Integration approach**: Wrap CrewAI agents/crews with an A2A server that translates tasks to crew kickoffs. ### AutoGen Microsoft's AutoGen multi-agent framework: - AutoGen agents can be wrapped as A2A servers - AutoGen's conversation patterns map to A2A multi-turn - Group chat can be exposed as a single A2A agent **Integration approach**: Build adapters between AutoGen's message protocol and A2A. ### AWS Bedrock AgentCore AWS Bedrock has added A2A support: - Bedrock agents can communicate via A2A - AgentCore provides infrastructure for hosting A2A-compatible agents - Integration with AWS IAM for authentication **Integration approach**: Use Bedrock's A2A-compatible agent hosting and client utilities. ### Microsoft Azure AI Foundry Azure AI Foundry includes A2A support as part of its multi-agent orchestration stack: - Foundry-hosted agents can be exposed as A2A servers and consumed as A2A clients - Connected Agents and Multi-Agent Workflows interoperate with external A2A endpoints - Authentication integrates with Microsoft Entra ID - A2A is positioned alongside MCP for cross-vendor agent interoperability **Integration approach**: Use Foundry's built-in A2A bindings on agent definitions, and the Foundry SDK's A2A client utilities for outbound calls. Verify the current binding shape against Microsoft Learn before implementing — the surface is evolving. ### General Integration Pattern Regardless of framework, the pattern is: **Exposing a framework agent as A2A server:** 1. Create an Agent Card describing the framework agent's capabilities 2. Implement a thin A2A server that wraps the framework agent 3. Map incoming A2A messages to framework input format 4. Map framework output to A2A task results/artifacts 5. Handle state mapping (framework states → A2A task states) **Using A2A agents from a framework:** 1. Fetch the target agent's Agent Card 2. Create an A2A client in the framework's tool/action layer 3. Map the framework's delegation pattern to A2A `message/send` or `message/stream` 4. Handle A2A responses within the framework's processing flow ### State Mapping Challenges Different frameworks manage state differently: - **LangGraph**: Graph state with checkpoints → A2A task state - **CrewAI**: Crew execution state → A2A task state - **AutoGen**: Conversation history → A2A message history - **ADK**: Native A2A alignment (minimal mapping needed) - **Azure AI Foundry**: Connected Agents / Multi-Agent Workflow state → A2A task state ### Best Practices - Use the simplest integration pattern that works — don't over-abstract - Test framework-specific edge cases (timeouts, retries, error handling) - Document the state mapping between the framework and A2A - Keep the adapter layer as thin as possible - Check for official A2A adapters before building custom ones - Handle framework-specific features that don't map cleanly to A2A (e.g., LangGraph branching) - Version your adapters alongside framework version upgrades Fetch the latest framework documentation and A2A SDK adapters before implementing integrations.
Related Skills
sf-integrations
Build Salesforce Commerce integrations — B2C (SCAPI hooks, webhooks, custom script callouts) and B2B (Platform Events, Change Data Capture, outbound messages). Both platforms use event-driven patterns, HMAC verification, idempotency, and retry handling for reliable integration.
nlweb-tools-framework
Design and implement NLWeb tools — the per-Schema.org-type handlers that turn a query into a specialized response (search, item_details, compare_items, ensemble, recipe_substitution, accompaniment, conversation_search, etc.). Covers `tools.xml`, the ToolSelector router, builtin handlers in `methods/`, writing a custom tool with a `<returnStruc>` contract, and disabling tool selection for raw retrieval. Use when extending NLWeb beyond the default query → results flow.
ap2-vdc-framework
Implement the AP2 Verifiable Digital Credentials (VDC) framework — tamper-evident, cryptographically signed credentials that form the trust foundation for agentic payments. Use when working with the overall VDC architecture, credential issuance, verification, and holder binding.
woo-testing
Test WooCommerce extensions — PHPUnit unit/integration tests, WP test suite, WooCommerce test helpers, E2E with Playwright, and WP-CLI test scaffolding. Use when writing tests for WooCommerce plugins or setting up a test environment.
woo-shipping
Build WooCommerce shipping methods — WC_Shipping_Method, shipping zones, shipping classes, rate calculation, tracking, and integration with carriers. Use when creating custom shipping integrations or configuring shipping logic.
woo-setup
Install WooCommerce, configure the development stack, and set up a local dev environment with WP-CLI, Docker, or wp-env. Use when setting up a new WooCommerce project or development environment.
woo-security
Implement WooCommerce security — nonces, capabilities, input sanitization, output escaping, data validation, PCI compliance considerations, and WordPress security best practices. Use when hardening a WooCommerce store or reviewing security posture.
woo-plugin-dev
Create WooCommerce extensions/plugins — file structure, main plugin file, activation/deactivation hooks, custom database tables, autoloading, and WordPress plugin API. Use when building new WooCommerce extensions or structuring plugin code.
woo-performance
Optimize WooCommerce performance — object caching, transients, HPOS, database optimization, Action Scheduler, lazy loading, and query optimization. Use when improving store performance or diagnosing slowness.
woo-payments
Build WooCommerce payment gateways — WC_Payment_Gateway, direct/redirect/hosted integrations, tokenization, subscriptions support, refunds, and PCI compliance. Use when creating custom payment method integrations.
woo-hooks-filters
Master the WordPress hook system for WooCommerce — actions, filters, hook priorities, WooCommerce-specific hooks, and extensibility patterns. Use when adding functionality via hooks or understanding the WooCommerce execution flow.
woo-frontend
Customize WooCommerce frontend — template overrides, theme integration, shortcodes, hooks for product/cart/checkout display, and WooCommerce block themes. Use when modifying the storefront appearance or building WooCommerce themes.