Skip to content

example(a2a,nacos): For #293, Add example for a2a and nacos a2a registry.#458

Merged
AlbumenJ merged 9 commits intoagentscope-ai:mainfrom
KomachiSion:main-#293-example-and-all-in-one
Jan 7, 2026
Merged

example(a2a,nacos): For #293, Add example for a2a and nacos a2a registry.#458
AlbumenJ merged 9 commits intoagentscope-ai:mainfrom
KomachiSion:main-#293-example-and-all-in-one

Conversation

@KomachiSion
Copy link
Contributor

@KomachiSion KomachiSion commented Jan 6, 2026

AgentScope-Java Version

1.0.7

Description

For #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.

  • 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

Change-Id: I139e713ee4d1b70c54cddd9ffb37ede614643cfb
…te documents.

Change-Id: Ib1e4d5ecc673f60279deab8b57517fff33462c73
…2a example module.

Change-Id: I53747b7fc429cf80dcff37cc4f9ffc91bd4f08c4
Change-Id: I1009b623086fa2a4f4135084ba0cd4b6488fb6a0
Change-Id: I2296c79ccec621d0efae43e096468ea46771a10f
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 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.

Change-Id: Ib4257940f887cec99bd11537d77d1a7999d07b74
…tags.

Change-Id: I529dc63866311f80b40ee666dedaed3d2cfb53c4
Change-Id: Ife62b4388cd951b204454a3317cb4a2b79455847
@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…one.

Change-Id: I111939833f1ab11bc234a837bc3050031bde073e
@AlbumenJ AlbumenJ merged commit f70e281 into agentscope-ai:main Jan 7, 2026
4 checks passed
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
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