Skip to content

Commit 8e2262a

Browse files
authored
chore(boba-tea-shop): adjust dependency configuration for A2A service discovery (#456)
## AgentScope-Java Version 1.0.6 ## Description chore(boba-tea-shop): adjust dependency configuration for A2A service discovery ## 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
1 parent 1d0e81d commit 8e2262a

9 files changed

Lines changed: 16 additions & 22 deletions

File tree

agentscope-examples/boba-tea-shop/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Through this example, you can learn:
9898
| Extension | Description |
9999
|-----------|-------------|
100100
| `agentscope-core` | Core framework, includes ReActAgent, etc. |
101-
| `agentscope-extensions-a2a-nacos` | A2A protocol Nacos service discovery |
101+
| `agentscope-extensions-nacos-a2a` | A2A protocol Nacos service discovery |
102102
| `agentscope-extensions-mcp-nacos` | MCP protocol Nacos service discovery |
103103
| `agentscope-extensions-mem0` | Mem0 memory service integration |
104104
| `agentscope-extensions-session-mysql` | MySQL session persistence |

agentscope-examples/boba-tea-shop/README_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Boba Tea Shop 是一个基于 **AgentScope Java** 框架构建的多智能体系
9898
| 扩展 | 说明 |
9999
|------|------|
100100
| `agentscope-core` | 核心框架,包含 ReActAgent 等 |
101-
| `agentscope-extensions-a2a-nacos` | A2A 协议 Nacos 服务发现 |
101+
| `agentscope-extensions-nacos-a2a` | A2A 协议 Nacos 服务发现 |
102102
| `agentscope-extensions-mcp-nacos` | MCP 协议 Nacos 服务发现 |
103103
| `agentscope-extensions-mem0` | Mem0 记忆服务集成 |
104104
| `agentscope-extensions-session-mysql` | MySQL 会话持久化 |

agentscope-examples/boba-tea-shop/business-sub-agent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
</dependency>
5858
<dependency>
5959
<groupId>io.agentscope</groupId>
60-
<artifactId>agentscope-a2a-nacos-spring-boot-starter</artifactId>
60+
<artifactId>agentscope-nacos-spring-boot-starter</artifactId>
6161
</dependency>
6262
<dependency>
6363
<groupId>io.agentscope</groupId>

agentscope-examples/boba-tea-shop/business-sub-agent/src/main/resources/application.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ agentscope:
3535
server-addr: ${NACOS_SERVER_ADDR:127.0.0.1:8848}
3636
namespace: ${NACOS_NAMESPACE:public}
3737
a2a:
38+
nacos:
39+
server-addr: ${NACOS_SERVER_ADDR:127.0.0.1:8848}
40+
namespace: ${NACOS_NAMESPACE:public}
3841
server:
3942
card:
4043
name: business_agent

agentscope-examples/boba-tea-shop/consult-sub-agent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</dependency>
6060
<dependency>
6161
<groupId>io.agentscope</groupId>
62-
<artifactId>agentscope-a2a-nacos-spring-boot-starter</artifactId>
62+
<artifactId>agentscope-nacos-spring-boot-starter</artifactId>
6363
</dependency>
6464
<dependency>
6565
<groupId>io.agentscope</groupId>

agentscope-examples/boba-tea-shop/consult-sub-agent/src/main/resources/application.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ agentscope:
4141
server-addr: ${NACOS_SERVER_ADDR:127.0.0.1:8848}
4242
namespace: ${NACOS_NAMESPACE:public}
4343
a2a:
44+
nacos:
45+
server-addr: ${NACOS_SERVER_ADDR:127.0.0.1:8848}
46+
namespace: ${NACOS_NAMESPACE:public}
4447
server:
4548
card:
4649
name: consult_agent

agentscope-examples/boba-tea-shop/pom.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,11 @@
6262
<type>pom</type>
6363
<scope>import</scope>
6464
</dependency>
65-
<dependency>
66-
<groupId>io.agentscope</groupId>
67-
<artifactId>agentscope-extensions-a2a-nacos</artifactId>
68-
<version>1.0.3</version>
69-
<exclusions>
70-
<exclusion>
71-
<groupId>io.agentscope</groupId>
72-
<artifactId>agentscope-extensions-a2a-server</artifactId>
73-
</exclusion>
74-
</exclusions>
75-
</dependency>
7665
<dependency>
7766
<groupId>io.agentscope</groupId>
7867
<artifactId>agentscope-extensions-mcp-nacos</artifactId>
7968
<version>1.0.3</version>
8069
</dependency>
81-
<dependency>
82-
<groupId>io.agentscope</groupId>
83-
<artifactId>agentscope-a2a-nacos-spring-boot-starter</artifactId>
84-
<version>1.0.3</version>
85-
</dependency>
8670
<dependency>
8771
<groupId>io.agentscope</groupId>
8872
<artifactId>agentscope-dependencies-bom</artifactId>

agentscope-examples/boba-tea-shop/supervisor-agent/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@
5555
</dependency>
5656
<dependency>
5757
<groupId>io.agentscope</groupId>
58-
<artifactId>agentscope-extensions-a2a-nacos</artifactId>
58+
<artifactId>agentscope-extensions-nacos-a2a</artifactId>
59+
</dependency>
60+
<dependency>
61+
<groupId>io.agentscope</groupId>
62+
<artifactId>agentscope-extensions-a2a-client</artifactId>
5963
</dependency>
6064
<dependency>
6165
<groupId>io.agentscope</groupId>

agentscope-examples/boba-tea-shop/supervisor-agent/src/main/java/io/agentscope/examples/bobatea/supervisor/config/A2aAgentConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import com.alibaba.nacos.api.ai.AiService;
2020
import io.agentscope.core.a2a.agent.A2aAgent;
21-
import io.agentscope.extensions.nacos.a2a.discovery.NacosAgentCardResolver;
21+
import io.agentscope.core.nacos.a2a.discovery.NacosAgentCardResolver;
2222
import org.springframework.context.annotation.Bean;
2323
import org.springframework.context.annotation.Configuration;
2424

0 commit comments

Comments
 (0)