agentscope-java icon indicating copy to clipboard operation
agentscope-java copied to clipboard

AgentSkill 这个类会被移除吗?

Open luoshu-open opened this issue 5 months ago • 4 comments

如果后面AgentSkill这个类没有了,那后面怎么自定义构建skill呀。

当前源码已经标记为废弃了:

  • @deprecated since 2.0.0. The skill package is removed; manage markdown skill catalogs in
  • application code.
    

*/ @Deprecated(since = "2.0.0") public class AgentSkill {

但是AgentSkillRepository作为2.0版本的skill核心API,又依赖了它。 从我们后续长期来看,应该怎么使用呀

luoshu-open avatar Jun 21 '26 03:06 luoshu-open

https://java.agentscope.io/v2/zh/docs/change-log.html#part-b-deprecated-forremoval-true

jujn avatar Jun 21 '26 06:06 jujn

https://java.agentscope.io/v2/zh/docs/change-log.html#part-b-deprecated-forremoval-true

Image

你好,文档描述说通过AgentSkillRepository注入技能,在目前最新版本2.0.0-RC4 AgentSkillRepository源码中还是在使用AgentSkill做为入参和返回参数,请问后面需要怎么迁移

Image

Hifly-X avatar Jun 25 '26 01:06 Hifly-X

你好,文档描述说通过AgentSkillRepository注入技能,在目前最新版本2.0.0-RC4 AgentSkillRepository源码中还是在使用AgentSkill做为入参和返回参数,请问后面需要怎么迁移

看内部讨论说是目前 skill 的公共 API 设计的太复杂了,要简化。2.0.x 期间这些 API 仍会保留,2.1 或之后会提供替代方案。

jujn avatar Jun 25 '26 04:06 jujn

应该会重新吧,现在的技能和Agent之间没有形成对应关系,都是全局的。多智能体场景下,这个无法云端使用。

TianyuGeek001 avatar Jul 16 '26 06:07 TianyuGeek001