agentscope-ai / agentscope-ai/agentscope-java

[Feature]: NacosSkillRepository 在Harness Agent中如何使用?getSkillAll都是返回空数组,那我注册到nacos的技能Harness智能体如何得知?

未关闭
#1,763 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area/ext/integration area/harness enhancement
主要语言
Java
星标
5.6k
派生
1.3k
平均合并
4 天 12 小时
30 天内合并 PR
77

描述

目前想引用Nacos+Agentscope生态构建Harness Agent,但当skill在nacos注册后,Harness Agent无法得知命名空间下的skill。
```java
HarnessAgent.Builder builder = HarnessAgent.builder()
.name(config.getName())
.model(DashScopeChatModel.builder()
.baseUrl(baseUrl)
.apiKey(apiKey)
.modelName(config.getModel())
.build())
.maxIters(50)
.maxContextTokens(32000)
.workspace(config.getWorkspacePath())
.skillRepository(new NacosSkillRepository(aiService, environment.getProperty("spring.cloud.nacos.discovery.namespace", "public")))
.distributedStore(RedisDistributedStore.fromJedis(jedis))
.permissionContext(PermissionContextState.builder().mode(PermissionMode.BYPASS).build());
```
源码:io.agentscope.core.nacos.skill.NacosSkillRepository
```java
@Override
public List getAllSkillNames() {
log.warn("NacosSkillRepository is read-only, getAllSkillNames returns empty list");
return Collections.emptyList();
}

@Override
public List getAllSkills() {
log.warn("NacosSkillRepository is read-only, getAllSkills returns empty list");
return Collections.emptyList();
}
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。