example(a2a,nacos): For #293, Add example for a2a and nacos a2a registry.#458
Merged
AlbumenJ merged 9 commits intoagentscope-ai:mainfrom Jan 7, 2026
Merged
Conversation
Change-Id: I139e713ee4d1b70c54cddd9ffb37ede614643cfb
…te documents. Change-Id: Ib1e4d5ecc673f60279deab8b57517fff33462c73
…2a example module. Change-Id: I53747b7fc429cf80dcff37cc4f9ffc91bd4f08c4
Change-Id: I1009b623086fa2a4f4135084ba0cd4b6488fb6a0
Change-Id: I2296c79ccec621d0efae43e096468ea46771a10f
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive A2A (Agent-to-Agent) protocol support with examples and Nacos registry integration for AgentScope Java.
- Adds complete A2A protocol example application with Spring Boot integration
- Updates documentation to reflect Nacos client dependency change from custom extension to direct nacos-client dependency
- Includes Nacos A2A registry module in the all-in-one distribution package
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/zh/task/a2a.md | Updates Nacos A2A dependency from custom agentscope extension to direct nacos-client |
| docs/en/task/a2a.md | Updates Nacos A2A dependency from custom agentscope extension to direct nacos-client |
| docs/zh/quickstart/installation.md | Adds Nacos Registry entry to dependency table with proper formatting |
| docs/en/quickstart/installation.md | Adds Nacos Registry entry to dependency table with proper formatting |
| agentscope-extensions-nacos-a2a/pom.xml | Sets nacos-client dependency as provided and optional for better dependency management |
| agentscope-nacos-spring-boot-starter/pom.xml | Adds explicit nacos-client dependency to Spring Boot starter |
| agentscope-examples/boba-tea-shop/supervisor-agent/pom.xml | Adds nacos-client dependency to boba-tea-shop supervisor agent |
| agentscope-examples/pom.xml | Registers new a2a example module |
| agentscope-examples/a2a/pom.xml | Defines dependencies for A2A example including core, starters, and Spring Boot web |
| agentscope-examples/a2a/src/main/resources/logback.xml | Configures logging for the A2A example application |
| agentscope-examples/a2a/src/main/resources/application.yml | Provides application configuration with A2A and Nacos settings |
| agentscope-examples/a2a/.../ExampleTools.java | Implements demo tools (weather, calculator, time) for A2A agent |
| agentscope-examples/a2a/.../SimpleA2aAgentExample.java | Demonstrates basic A2A agent usage with well-known URI discovery |
| agentscope-examples/a2a/.../NacosA2aAgentExample.java | Demonstrates A2A agent usage with Nacos service discovery |
| agentscope-examples/a2a/.../A2aExampleApplication.java | Spring Boot application entry point with toolkit configuration |
| agentscope-examples/a2a/.../A2aAgentExampleRunner.java | Interactive CLI runner for testing A2A agents |
| agentscope-distribution/agentscope-all/pom.xml | Adds Nacos A2A extension to all-in-one distribution |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
agentscope-examples/a2a/src/main/java/io/agentscope/examples/a2a/A2aAgentExampleRunner.java
Show resolved
Hide resolved
agentscope-examples/a2a/src/main/java/io/agentscope/examples/a2a/tools/ExampleTools.java
Show resolved
Hide resolved
agentscope-examples/a2a/src/main/java/io/agentscope/examples/a2a/A2aAgentExampleRunner.java
Outdated
Show resolved
Hide resolved
agentscope-examples/a2a/src/main/java/io/agentscope/examples/a2a/tools/ExampleTools.java
Show resolved
Hide resolved
Change-Id: Ib4257940f887cec99bd11537d77d1a7999d07b74
…tags. Change-Id: I529dc63866311f80b40ee666dedaed3d2cfb53c4
Change-Id: Ife62b4388cd951b204454a3317cb4a2b79455847
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…one. Change-Id: I111939833f1ab11bc234a837bc3050031bde073e
AlbumenJ
approved these changes
Jan 7, 2026
Open
7 tasks
yaohuitc
pushed a commit
to yaohuitc/agentscope-java
that referenced
this pull request
Jan 10, 2026
…cos a2a registry. (agentscope-ai#458) ## AgentScope-Java Version 1.0.7 ## Description For agentscope-ai#293 . - example(a2a): add A2A protocol example with tools and Spring Boot app. - chore(deps): Add Nacos extensions dependency into all-in-one and update documents. - example(a2a,nacos): Add Nacos A2A registry and discovery example in a2a example module. ## Checklist Please check the following items before code is ready to be reviewed. - [x] Code has been formatted with `mvn spotless:apply` - [x] All tests are passing (`mvn test`) - [x] Javadoc comments are complete and follow project conventions - [x] Related documentation has been updated (e.g. links, examples, etc.) - [x] Code is ready for review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AgentScope-Java Version
1.0.7
Description
For #293 .
Checklist
Please check the following items before code is ready to be reviewed.
mvn spotless:applymvn test)