AS AgentScopeAPI 手册 / API Reference

HarnessSkillEntry

@SuppressWarnings("deprecation") public record HarnessSkillEntry(AgentSkill skill, SkillResources lazyResources, String filesRoot)
源码Source io/agentscope/harness/agent/skill/runtime/HarnessSkillEntry.java:36–49

承载 Harness 技能条目数据的记录类型。位于 io.agentscope.harness.agent.skill.runtime 包。核心成员包括 skill、lazyResources、filesRoot、of、HarnessSkillEntry。

Per-call wrapper around an AgentSkill carrying harness-only metadata that does not belong on the core data type.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
skillAgentSkill
执行技能相关操作。
the underlying skill (non-null)
lazyResourcesSkillResources
执行 `lazyResources` 方法。
resource accessor when the source repository implements `io.agentscope.harness.agent.skill.LazyResourceCapable`; `null` when only the in-memory `skill.resources` map is available
filesRootString
执行文件根相关操作。
absolute path root for shell execution of this skill's scripts; may be `null` when no shell tool is available (in which case the prompt omits `<files-root>`) or when the skill is sourced from a repository whose contents are not present on any filesystem the shell can reach

构造器摘要Constructor Summary

构造器Constructor说明Description
public HarnessSkillEntry(AgentSkill skill, SkillResources lazyResources, String filesRoot)
初始化 `HarnessSkillEntry` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public static HarnessSkillEntry of(AgentSkill skill, SkillResources lazyResources)
static
创建并返回实例。
Convenience for runtime layers that have no shell mode wired yet.

记录组件详情Record Component Detail

skill

AgentSkill skill

执行技能相关操作。

the underlying skill (non-null)

源码Source io/agentscope/harness/agent/skill/runtime/HarnessSkillEntry.java:36–49

lazyResources

SkillResources lazyResources

执行 lazyResources 方法。

resource accessor when the source repository implements io.agentscope.harness.agent.skill.LazyResourceCapable; null when only the in-memory skill.resources map is available

源码Source io/agentscope/harness/agent/skill/runtime/HarnessSkillEntry.java:36–49

filesRoot

String filesRoot

执行文件根相关操作。

absolute path root for shell execution of this skill's scripts; may be null when no shell tool is available (in which case the prompt omits <files-root>) or when the skill is sourced from a repository whose contents are not present on any filesystem the shell can reach

源码Source io/agentscope/harness/agent/skill/runtime/HarnessSkillEntry.java:36–49

构造器详情Constructor Detail

HarnessSkillEntry

public HarnessSkillEntry(AgentSkill skill, SkillResources lazyResources, String filesRoot)

初始化 HarnessSkillEntry 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
skillAgentSkill技能(类型 `AgentSkill`)。The skill.
lazyResourcesSkillResourceslazy Resources(类型 `SkillResources`)。The lazy resources.
filesRootString文件根(类型 `String`)。The files root.
源码Source io/agentscope/harness/agent/skill/runtime/HarnessSkillEntry.java:39–43

方法详情Method Detail

of

public static HarnessSkillEntry of(AgentSkill skill, SkillResources lazyResources)
static

创建并返回实例。

Convenience for runtime layers that have no shell mode wired yet.

参数Parameters
名称Name类型Type说明Description
skillAgentSkill技能(类型 `AgentSkill`)。The skill.
lazyResourcesSkillResourceslazy Resources(类型 `SkillResources`)。The lazy resources.
返回Returns HarnessSkillEntry
返回HarnessSkillEntry。Returns harness skill entry.
源码Source io/agentscope/harness/agent/skill/runtime/HarnessSkillEntry.java:46–48
基于官方固定版本源码静态生成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.