Class SkillLoadTool
java.lang.Object
io.agentscope.harness.agent.skill.runtime.SkillLoadTool
- All Implemented Interfaces:
io.agentscope.core.tool.AgentTool
The harness-native
load_skill_through_path AgentTool.
Query order for any path other than SKILL.md:
skill.getResources().get(path)— in-memory map (Layer 1/3 host repositories and marketplace repositories that preload everything)entry.lazyResources().read(path)— filesystem fallback for sources that implementLazyResourceCapable(e.g.WorkspaceSkillRepository)- 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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a context-scoped loader with an empty context-free compatibility catalog.SkillLoadTool(AtomicReference<SkillCatalog> catalogRef) Deprecated. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.agentscope.core.tool.AgentTool
getOutputSchema, getStrict, isReturnDirect
-
Field Details
-
TOOL_NAME
- See Also:
-
-
Constructor Details
-
SkillLoadTool
public SkillLoadTool()Creates a context-scoped loader with an empty context-free compatibility catalog. -
SkillLoadTool
Deprecated.PreferSkillLoadTool()and bind catalogs throughSkillRuntime.install(SkillCatalog, io.agentscope.core.agent.RuntimeContext, io.agentscope.core.tool.Toolkit).Creates a loader backed by a legacy context-free catalog reference.This constructor is retained for source and binary compatibility. The supplied reference is never used when a tool call carries a RuntimeContext, preventing it from bypassing the request-scoped skill filter.
-
-
Method Details
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceio.agentscope.core.tool.AgentTool
-
getName
- Specified by:
getNamein interfaceio.agentscope.core.tool.AgentTool
-
getDescription
- Specified by:
getDescriptionin interfaceio.agentscope.core.tool.AgentTool
-
getParameters
- Specified by:
getParametersin interfaceio.agentscope.core.tool.AgentTool
-
callAsync
public reactor.core.publisher.Mono<io.agentscope.core.message.ToolResultBlock> callAsync(io.agentscope.core.tool.ToolCallParam param) - Specified by:
callAsyncin interfaceio.agentscope.core.tool.AgentTool
-
SkillLoadTool()and bind catalogs throughSkillRuntime.install(SkillCatalog, io.agentscope.core.agent.RuntimeContext, io.agentscope.core.tool.Toolkit).