Class ProposeSkillTool

java.lang.Object
io.agentscope.harness.agent.tool.ProposeSkillTool
All Implemented Interfaces:
io.agentscope.core.tool.AgentTool

public class ProposeSkillTool extends Object implements io.agentscope.core.tool.AgentTool
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 Details

  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface io.agentscope.core.tool.AgentTool
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface io.agentscope.core.tool.AgentTool
    • getParameters

      public Map<String,Object> getParameters()
      Specified by:
      getParameters in interface io.agentscope.core.tool.AgentTool
    • callAsync

      public reactor.core.publisher.Mono<io.agentscope.core.message.ToolResultBlock> callAsync(io.agentscope.core.tool.ToolCallParam param)
      Specified by:
      callAsync in interface io.agentscope.core.tool.AgentTool