AS AgentScopeAPI 手册 / API Reference

ProposeSkillTool

public class ProposeSkillTool implements AgentTool
源码Source io/agentscope/harness/agent/tool/ProposeSkillTool.java:40–215

Propose 技能工具,封装可被智能体调用的能力。位于 io.agentscope.harness.agent.tool 包,实现 AgentTool。核心成员包括 getName、getDescription、getParameters、callAsync、ProposeSkillTool、NAME。

Convenience tool that lets the agent propose a brand-new skill in one call: name + description + body + optional scripts. Internally translates to SkillManageTool.create + skill_manage write_file* so the standard staging / validation / scanning pipeline applies.

Compared to skill_manage(action="create") this tool: takes the body and frontmatter separately (no need for the agent to hand-write YAML), and accepts a list of scripts to upload in the same call. Useful when the agent has just discovered a reusable approach and wants to commit it without authoring the full SKILL.md text.

字段摘要Field Summary

字段Field类型Type说明Description
NAME
staticfinal
String
名称字段。
The NAME field.

构造器摘要Constructor Summary

构造器Constructor说明Description
public ProposeSkillTool(SkillManageTool delegate)
初始化 `ProposeSkillTool` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String getName()
获取名称。
Returns the name.
public String getDescription()
获取 `getDescription`。
Returns the description.
public Map<String, Object> getParameters()
获取参数。
Returns the parameters.
public Mono<ToolResultBlock> callAsync(ToolCallParam param)
调用异步。
Calls the async.

字段详情Field Detail

NAME

public static final String NAME
staticfinal

名称字段。声明为 public static final String NAME。

The NAME field.

源码Source io/agentscope/harness/agent/tool/ProposeSkillTool.java:44

构造器详情Constructor Detail

ProposeSkillTool

public ProposeSkillTool(SkillManageTool delegate)

初始化 ProposeSkillTool 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
delegateSkillManageTool委托(类型 `SkillManageTool`)。The delegate.
源码Source io/agentscope/harness/agent/tool/ProposeSkillTool.java:48–50

方法详情Method Detail

getName

public String getName()

获取名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/agent/tool/ProposeSkillTool.java:52–55

getDescription

public String getDescription()

获取 getDescription。

Returns the description.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/agent/tool/ProposeSkillTool.java:57–64

getParameters

public Map<String, Object> getParameters()

获取参数。

Returns the parameters.

返回Returns Map<String, Object>
返回映射。Returns map.
源码Source io/agentscope/harness/agent/tool/ProposeSkillTool.java:66–105

callAsync

public Mono<ToolResultBlock> callAsync(ToolCallParam param)

调用异步。

Calls the async.

参数Parameters
名称Name类型Type说明Description
paramToolCallParam参数(类型 `ToolCallParam`)。The param.
返回Returns Mono<ToolResultBlock>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/tool/ProposeSkillTool.java:107–168

继承成员Inherited Members

继承自Methods inherited from AgentTool
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.