包package
io.agentscope.harness.agent.skill.runtimeio.agentscope.harness.agent.skill.runtime
package io.agentscope.harness.agent.skill.runtime
io.agentscope.harness.agent.skill.runtime 属于工具与技能,工具注册、schema 与执行。 该包共收录 13 个公开类型。
io.agentscope.harness.agent.skill.runtime belongs to the Tools & skills layer and contains 13 public types.
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
MarketplaceStager | 类class | 市场 Stager,让智能体以受控方式调用外部能力。 Materialises non-workspace skill resources (Layer 1 / Layer 2 / marketplace) to
`<wsRoot>/.skills-cache/<source-ns>/<skill-name>/` so that:
- shell-mode HarnessAgents (sandbox or Local-with-shell) can execute the staged scripts
via absolute paths
- sandbox projection (which includes `.skills-cache` in
`DEFAULT_WORKSPACE_PROJECTION_ROOTS`) hydrates the staged content into the
sandbox at start time |
ShellPathPolicy | 类class | Shell 路径策略,让智能体以受控方式调用外部能力。 Resolves the absolute `filesRoot` path emitted in `<available_skills>` and
`load_skill_through_path` responses, given a skill's `StageResult` and the
current shell mode. |
SkillCatalog | 类class | 技能目录,让智能体以受控方式调用外部能力。 Immutable snapshot of the skills visible to a single `onSystemPrompt` pass. |
SkillLoadTool | 类class | 技能加载工具,封装可被智能体调用的能力。 The harness-native `load_skill_through_path` `AgentTool`. |
SkillPromptBuilder | 类class | 技能提示词构建器,用于构建并配置目标实例。 Renders the harness `<available_skills>` system-prompt block from a `SkillCatalog`. |
SkillRuntime | 类class | 技能运行时,让智能体以受控方式调用外部能力。 Aggregates the singleton `SkillLoadTool` and the `SkillPromptBuilder`. |
记录Records
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
HarnessSkillEntry | 记录record | 承载 Harness 技能条目数据的记录类型。 Per-call wrapper around an `AgentSkill` carrying harness-only metadata that does not
belong on the core data type. |