AS AgentScopeAPI 手册 / API Reference

HarnessPlatformTools

public final class HarnessPlatformTools
源码Source io/agentscope/harness/agent/tools/HarnessPlatformTools.java:29–86

Harness 平台工具,封装可被智能体调用的能力。位于 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
NAMES
staticfinal
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
toolNameString工具名称(类型 `String`)。The tool name.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/agent/tools/HarnessPlatformTools.java:83–85
基于官方固定版本源码静态生成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.