HarnessSkillEntry
@SuppressWarnings("deprecation") public record HarnessSkillEntry(AgentSkill skill, SkillResources lazyResources, String filesRoot)
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 |
|---|---|---|
skill | AgentSkill | 执行技能相关操作。 the underlying skill (non-null) |
lazyResources | SkillResources | 执行 `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 |
filesRoot | String | 执行文件根相关操作。 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)
io/agentscope/harness/agent/skill/runtime/HarnessSkillEntry.java:36–49lazyResources
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
io/agentscope/harness/agent/skill/runtime/HarnessSkillEntry.java:36–49filesRoot
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
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.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
skill | AgentSkill | 技能(类型 `AgentSkill`)。The skill. |
lazyResources | SkillResources | lazy Resources(类型 `SkillResources`)。The lazy resources. |
filesRoot | String | 文件根(类型 `String`)。The files root. |
io/agentscope/harness/agent/skill/runtime/HarnessSkillEntry.java:39–43方法详情Method Detail
of
public static HarnessSkillEntry of(AgentSkill skill, SkillResources lazyResources)
创建并返回实例。
Convenience for runtime layers that have no shell mode wired yet.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
skill | AgentSkill | 技能(类型 `AgentSkill`)。The skill. |
lazyResources | SkillResources | lazy Resources(类型 `SkillResources`)。The lazy resources. |
HarnessSkillEntryio/agentscope/harness/agent/skill/runtime/HarnessSkillEntry.java:46–48