How the A2A Protocol Enables Cross-Organizational Collaboration for Agents Across Frameworks: From Agent Card Discovery to Bidirectional Callbacks
Cross-organizational multi-agent systems face a specific constraint: two institutions build and run their own agents, which need to discover each other and exchange tasks without exposing internal implementations or requiring both sides to use the same framework. Without a standardized protocol, every new customer or framework combination requires an ISV to write custom integration code. The A2A protocol attempts to replace these disparate paths with a single interface.
The reference architecture provided in the AWS Machine Learning blog runs three agents across two independent AWS accounts. The enterprise-side orchestrator is based on LangChain, invoking Anthropic Claude Sonnet 4.6 for reasoning routing; the SaaS-side compliance agent is built on the Strands Agents SDK and deployed on Amazon Bedrock AgentCore. Both use completely different frameworks and SDKs but communicate via A2A’s JSON-RPC over HTTP. The orchestrator does not depend on the Strands SDK, nor does the compliance agent depend on LangChain—this is the practical meaning of protocol-level interoperability: as long as both sides speak A2A and publish compatible Agent Cards, the frameworks can be swapped independently.
Agent Cards are the core discovery layer of this mechanism. They publish a JSON document at the /.well-known/agent-card.json path, describing the agent’s name, capabilities, and skills. The orchestrator fetches this card at startup, creating a LangChain tool for each skill listed on the card, after which the large language model decides which tool to call based on the user’s question. This means that when an ISV adds or modifies capabilities, it only needs to update the Agent Card; the orchestrator automatically acquires the new skills upon its next restart, eliminating the need for the two teams to coordinate code changes.
A key design decision lies in what the card publishes. Although the compliance agent has three internal tools (listing accounts, executing scans, and retrieving remediation steps), the Agent Card publishes only one curated skill: 'Scan your AWS account, returning findings and remediation steps by severity.' The calling model sees what the product does, not how it is built. This abstraction allows the ISV to refactor its internal architecture—swapping models, tools, or implementations—as long as the skills described in the card remain unchanged, leaving customer integrations unaffected.
Bidirectional callbacks are what set this solution apart from typical agent demonstrations. Most inter-agent communication demos show a unidirectional request-response pattern: a client calls a server agent and waits for the result. However, this pattern fails when the called agent needs information that only the caller possesses. In this architecture, the compliance agent requires enterprise context before scanning—such as which accounts are production environments, which internal policies apply, and who to escalate to—information known only to the enterprise side. The compliance agent calls back to the enterprise context agent via A2A, obtaining a token using its own account’s identity provider and sending a message to the callback address registered by the customer during onboarding. This makes the two agents true peers rather than a client and a server.
Fontes:Amazon Web Services