Skip to content

feat(a2a): Support A2A protocol calling by A2aAgent.#172

Merged
AlbumenJ merged 11 commits intoagentscope-ai:mainfrom
KomachiSion:feat-support-a2a-agent
Dec 12, 2025
Merged

feat(a2a): Support A2A protocol calling by A2aAgent.#172
AlbumenJ merged 11 commits intoagentscope-ai:mainfrom
KomachiSion:feat-support-a2a-agent

Conversation

@KomachiSion
Copy link
Contributor

@KomachiSion KomachiSion commented Dec 10, 2025

Change-Id: I20d1440c5192294446480da574856119b5aede50

AgentScope-Java Version

1.0.2

Description

Support call remote agent by A2A protocol

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@KomachiSion KomachiSion requested a review from a team December 10, 2025 05:56
@cla-assistant
Copy link

cla-assistant bot commented Dec 10, 2025

CLA assistant check
All committers have signed the CLA.

@cla-assistant
Copy link

cla-assistant bot commented Dec 10, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces support for the A2A (Agent-to-Agent) protocol in AgentScope-Java, enabling agents to call remote agents using standardized communication. The implementation includes a new A2aAgent class, comprehensive message conversion utilities between AgentScope and A2A formats, and event handlers for managing asynchronous A2A protocol interactions.

  • New A2aAgent class that extends AgentBase to support A2A protocol communication
  • Bidirectional message converters between AgentScope Msg and A2A Message/Artifact formats
  • Support for various content types: text, media (image/audio/video), tool use/results, and thinking blocks
  • Event handling infrastructure for processing A2A client events and task updates

Reviewed changes

Copilot reviewed 32 out of 32 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
agentscope-extensions/pom.xml Adds new a2a-agent module to the extensions
agentscope-dependencies-bom/pom.xml Adds A2A Java SDK client dependency (version 0.3.2.Final)
agentscope-extensions/.../A2aAgent.java Core agent implementation with A2A protocol support, lifecycle management, and interrupt handling
agentscope-extensions/.../A2aAgentConfig.java Configuration record for A2A agent with transport and client config options
agentscope-extensions/.../MessageConvertUtil.java Utility for bidirectional message conversion between AgentScope and A2A formats
agentscope-extensions/.../LoggerUtil.java Logging utilities with level checks to avoid unnecessary string formatting
agentscope-extensions/.../message/*.java Parser implementations for converting between AgentScope ContentBlocks and A2A Parts
agentscope-extensions/.../event/*.java Event handlers for processing A2A client events, task updates, and messages
agentscope-extensions/.../card/*.java Agent card resolver implementations for fixed and well-known URLs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 34 changed files in this pull request and generated 17 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AlbumenJ AlbumenJ requested a review from Copilot December 10, 2025 11:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 34 out of 34 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Change-Id: I20d1440c5192294446480da574856119b5aede50
Change-Id: I77ef6b7d996846ad5eeeda70711f78b27380286f
Change-Id: I7ae4b618892fa6db97f0e3fd372773dca6980013
Change-Id: Iaabddd3b6aa8a3b0a263501a059b5da71b36b43e
Change-Id: If15fe0f5f64ca41b771fcf7a2cd9771122b8d01e
Change-Id: Ie8ad9149a0b40d23f6d8f9ef05e39efdd52826b0
Change-Id: Ic1b6528212ff08022464aa1a72f278a4f6ec02a5
…ilders.

Change-Id: I34d51a97dd6fc0d8fc7a02760b047539d4de8ba0
Change-Id: I4a0c5ea0e2c158dd503d58ad6ecbd33222bf84a4
@KomachiSion KomachiSion force-pushed the feat-support-a2a-agent branch from c3c0a67 to d495071 Compare December 10, 2025 12:21
@AlbumenJ
Copy link
Collaborator

Please increase code coverage percentage

Change-Id: I82da702c73d0eb1ce81d77c319bf34ab8d7d1594
Change-Id: I054117324c2e513d06ff4c2a9a5ed46d3623f7e0
@KomachiSion KomachiSion requested a review from AlbumenJ December 12, 2025 02:47
Copy link
Collaborator

@AlbumenJ AlbumenJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlbumenJ AlbumenJ merged commit a4d99e6 into agentscope-ai:main Dec 12, 2025
4 checks passed
@KomachiSion KomachiSion deleted the feat-support-a2a-agent branch December 15, 2025 05:58
JGoP-L pushed a commit to JGoP-L/agentscope-java that referenced this pull request Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants