HarnessPlatformTools
public final class HarnessPlatformTools
源码Source
io/agentscope/harness/agent/tools/HarnessPlatformTools.java:29–86Harness 平台工具,封装可被智能体调用的能力。位于 io.agentscope.harness.agent.tools 包。核心成员包括 isPlatformTool、NAMES。
Harness platform / orchestration tool names that ToolFilter must not strip via an allow list.
Product agent toolsets (Managed Agents UI / tools.json allow) may narrow the
catalogued surface — filesystem, shell, web, memory, session helpers, etc. They must not
disable the coordination runtime itself: subagents, teams, background tasks, plan mode, and skills
admin. Explicit deny still removes a name (operator opt-out).
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
NAMESstaticfinal | Set<String> | NAMES字段。 Names registered by `HarnessAgent` middleware / builder paths that are not part of the
product "agent toolset" catalog. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static boolean isPlatformTool(String toolName)static | 判断是否平台工具。 `true` when `toolName` is a harness platform tool. |
字段详情Field Detail
NAMES
public static final Set<String> NAMES
staticfinal
NAMES字段。声明为 public static final Set NAMES。
Names registered by HarnessAgent middleware / builder paths that are not part of the product "agent toolset" catalog.
源码Source
io/agentscope/harness/agent/tools/HarnessPlatformTools.java:35–78方法详情Method Detail
isPlatformTool
public static boolean isPlatformTool(String toolName)
static
判断是否平台工具。
true when toolName is a harness platform tool.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
toolName | String | 工具名称(类型 `String`)。The tool name. |
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/harness/agent/tools/HarnessPlatformTools.java:83–85