English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Spring AI Alibaba Adds Support for the A2A (Agent-to-Agent) Protocol

Forum topic · ✨步子哥 · 2025-10-20

Summary

Spring AI Alibaba, the open-source Java agentic AI framework built on Spring AI, now supports the A2A (Agent-to-Agent) protocol, enabling remote, distributed multi-agent architectures across services. Following the framework's 1.0 GA release in June 2025, a client-side A2A adaptation was merged into the spring-ai-alibaba-graph-core module in August 2025, with artifacts like spring-ai-alibaba-a2a-common available up to version 1.0.0.4 by September 2025. The integration allows agents to discover and invoke remote agents via AgentCards—JSON manifests describing capabilities—using the A2A SDK over HTTP and JSON-RPC. Classes such as A2aRemoteAgent and A2aNode handle URL-based AgentCard parsing, request formatting, and response integration, maintaining API consistency with local agents. Combined with Nacos for service discovery and MCP for context exchange, A2A support enables enterprise-grade distributed AI applications with scalability and interoperability. The framework integrates with Alibaba Cloud's Bailian platform (Tongyi Qianwen models), RAG, and observability tools like ARMS.

Spring AI Alibaba Adds Support for the A2A (Agent-to-Agent) Protocol

Key Points

  • Support status: Spring AI Alibaba supports the A2A (Agent-to-Agent) protocol, enabling remote, distributed multi-agent collaboration across processes and services, moving beyond in-process limitations.
  • Implementation: A2A client support lives in the spring-ai-alibaba-graph-core module, allowing agents to discover and invoke remote agents via AgentCards, leveraging the A2A SDK.
  • Availability: Introduced after the 1.0 GA release (June 2025); components such as spring-ai-alibaba-a2a-common were available up to version 1.0.0.4 as of September 2025.
  • Benefits: Enables enterprise-level distributed AI applications—remote multi-agent workflows with automatic request handling and state synchronization—improving scalability and interoperability.
  • Overview of Spring AI Alibaba

    Spring AI Alibaba is an open-source agentic AI framework built on Spring AI, tailored for Java developers building ChatBots, workflows, and multi-agent systems. It integrates deeply with Alibaba Cloud's Bailian platform for LLMs (e.g., Tongyi Qianwen), RAG, and other AI services, while supporting enterprise tools like Nacos (service discovery) and ARMS (observability). The framework emphasizes graph-based orchestration via Spring AI Alibaba Graph, allowing declarative definitions of nodes, edges, and states. Details: https://github.com/alibaba/spring-ai-alibaba and https://java2ai.com/en/docs/.

    The 1.0 GA release in June 2025 introduced production-ready features: graph-based multi-agent frameworks, streaming support, human-in-the-loop interventions, and persistent memory. Pre-built nodes (e.g., LlmNode, ToolNode) and workflow export to PlantUML/Mermaid aid debugging and collaboration.

    Understanding the A2A Protocol

    A2A (Agent-to-Agent) is an open standard proposed by Google in 2024 enabling autonomous interactions between AI agents. Agents discover capabilities via "Agent Cards" (JSON descriptions), delegate tasks, and communicate in a stateless, secure manner using HTTP, JSON-RPC, and OpenAPI-style authentication. It supports multimodal content (text, audio, video) and long-running tasks. In Spring AI Alibaba, A2A complements MCP (Model Context Protocol) for context sharing with external systems—potentially forming an "MCP + A2A" standard combination for AI ecosystems.

    Integration and Usage

    A2A support enables remote agent invocation for distributed services. Developers build remote agents using classes like A2aRemoteAgent and A2aNode, which handle URL-based AgentCard parsing, request formatting, and response integration into the overall graph state. A remote writer agent can be configured via a simple builder pattern (e.g., A2aRemoteAgent.builder()), keeping API consistency with local agents. In distributed setups, Nacos serves as the registry for dynamic agent discovery and routing.

    Key milestones:

    | Version/Component | Date | Key A2A Features | |---|---|---| | 1.0 GA (core framework) | June 2025 | A2A co-building planned; no direct implementation yet | | PR #2254 (graph-core update) | August 2025 (merged) | A2A client for remote agent interactions; AgentCard parsing, remote invocation | | 1.0.0.4 (spring-ai-alibaba-a2a-common) | September 2025 | Stable A2A common utilities | | Starter A2A Server | September 2025 | Server-side support for A2A-enabled agents |

    Related dependencies include a2a-java-sdk-client and a2a-java-sdk-server-common. Developers should add the relevant starters to their Maven pom.xml, configure API keys, and define remote agents using builders. Advanced use cases include distributed research agents (e.g., DeepResearch) with web crawling and Python scripting spread across nodes.

    Future Developments

    Current implementations focus on client-side adaptations; deeper protocol integration was planned post-1.0 GA. Community efforts include co-building with MCP and AG-UI protocols, aiming toward zero-code agent development platforms (e.g., Spring AI Alibaba Studio, JManus). Check Maven for the latest releases: https://mvnrepository.com/artifact/com.alibaba.cloud.ai/spring-ai-alibaba-a2a-common.

    References

  • https://github.com/alibaba/spring-ai-alibaba
  • https://java2ai.com/en/docs/
  • https://github.com/alibaba/spring-ai-alibaba/pull/2254
  • https://mvnrepository.com/artifact/com.alibaba.cloud.ai/spring-ai-alibaba-a2a-common
  • https://java2ai.com/blog/spring-ai-alibaba-10-ga-release/
  • https://sca.aliyun.com/en/ai/

Tags

#spring-ai-alibaba#a2a-protocol#java#multi-agent#alibaba-cloud#distributed-agents#mcp#nacos

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/176030938