Class SkillLoadTool

java.lang.Object
io.agentscope.harness.agent.skill.runtime.SkillLoadTool
All Implemented Interfaces:
io.agentscope.core.tool.AgentTool

public final class SkillLoadTool extends Object implements io.agentscope.core.tool.AgentTool
The harness-native load_skill_through_path AgentTool.

Query order for any path other than SKILL.md:

  1. skill.getResources().get(path) — in-memory map (Layer 1/3 host repositories and marketplace repositories that preload everything)
  2. entry.lazyResources().read(path) — filesystem fallback for sources that implement LazyResourceCapable (e.g. WorkspaceSkillRepository)
  3. Not found → error with a deduped enumeration of SKILL.md + in-memory keys + lazy listing

The registered tool resolves the filtered catalog from each tool call's RuntimeContext, keeping concurrent calls and sessions isolated without re-registering the tool. A legacy catalog reference is consulted only for deprecated callers that invoke the tool without any RuntimeContext.

  • Field Details

  • Constructor Details

  • Method Details

    • isReadOnly

      public boolean isReadOnly()
      Specified by:
      isReadOnly in interface io.agentscope.core.tool.AgentTool
    • 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