ProposeSkillTool
public class ProposeSkillTool implements AgentTool
io/agentscope/harness/agent/tool/ProposeSkillTool.java:40–215Propose 技能工具,封装可被智能体调用的能力。位于 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 |
|---|---|---|
NAMEstaticfinal | 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
名称字段。声明为 public static final String NAME。
The NAME field.
io/agentscope/harness/agent/tool/ProposeSkillTool.java:44构造器详情Constructor Detail
ProposeSkillTool
public ProposeSkillTool(SkillManageTool delegate)
初始化 ProposeSkillTool 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
delegate | SkillManageTool | 委托(类型 `SkillManageTool`)。The delegate. |
io/agentscope/harness/agent/tool/ProposeSkillTool.java:48–50方法详情Method Detail
getName
public String getName()
获取名称。
Returns the name.
Stringio/agentscope/harness/agent/tool/ProposeSkillTool.java:52–55getDescription
public String getDescription()
获取 getDescription。
Returns the description.
Stringio/agentscope/harness/agent/tool/ProposeSkillTool.java:57–64getParameters
public Map<String, Object> getParameters()
获取参数。
Returns the parameters.
Map<String, Object>io/agentscope/harness/agent/tool/ProposeSkillTool.java:66–105callAsync
public Mono<ToolResultBlock> callAsync(ToolCallParam param)
调用异步。
Calls the async.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
param | ToolCallParam | 参数(类型 `ToolCallParam`)。The param. |
Mono<ToolResultBlock>io/agentscope/harness/agent/tool/ProposeSkillTool.java:107–168