AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.harness.agent.tools

io.agentscope.harness.agent.tools

package io.agentscope.harness.agent.tools

io.agentscope.harness.agent.tools 属于工具与技能,工具注册、schema 与执行。 该包共收录 10 个公开类型。

io.agentscope.harness.agent.tools belongs to the Tools & skills layer and contains 10 public types.

所属构件Artifacts agentscope-harness

接口Interfaces

类型Type种类Kind说明Description
McpServerRegistrationListener接口interface
定义 MCP 服务端注册监听器契约的接口。
Receives the terminal result of an MCP server registration attempt.

类Classes

类型Type种类Kind说明Description
HarnessPlatformTools类class
Harness 平台工具,封装可被智能体调用的能力。
Harness platform / orchestration tool names that `ToolFilter` must not strip via an ` allow` list.
McpConnectionException类class
MCP 连接异常,表示执行过程中的错误。
A connection failure whose public message never contains endpoint credentials.
McpServerConfig类class
MCP 服务端配置,保存相关配置项。
One MCP server entry under `mcpServers.<name>` in `tools.json`.
McpServerRegistrar类class
MCP 服务端 Registrar,让智能体以受控方式调用外部能力。
Registers MCP servers declared under `mcpServers` in `workspace/tools.json` into a `Toolkit`.
ToolFilter类class
工具过滤器,让智能体以受控方式调用外部能力。
Applies the allow (`ToolsConfig#getAllow()`) / deny (`ToolsConfig#getDeny()`) lists from `workspace/tools.json` (or Managed Agents toolset export) against a `Toolkit`.
ToolsConfig类class
工具配置,保存相关配置项。
Workspace-level tool configuration loaded from `workspace/tools.json`.
ToolsConfigLoader类class
工具配置加载器,让智能体以受控方式调用外部能力。
Loads `workspace/tools.json` into a `ToolsConfig`.

记录Records

类型Type种类Kind说明Description
McpServerRegistrationResult记录record
承载 MCP 服务端注册结果数据的记录类型。
Terminal result of registering one MCP server entry.
基于官方固定版本源码静态生成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.