AS AgentScopeAPI 手册 / API Reference

ToolMergeMode

public enum ToolMergeMode
源码Source io/agentscope/core/tool/ToolMergeMode.java:26–51

定义工具 Merge 模式相关取值的枚举。位于 io.agentscope.core.tool 包。核心成员包括 EXTERNAL_ONLY、AGENT_ONLY、MERGE_EXTERNAL_PRIORITY。

Enum defining how externally injected tools (e.g. from a frontend) should be merged with an agent's shared toolkit.

An external tool is by definition schema-only (no local implementation). This enum controls how a per-call ToolRequestConfig is composed with the shared, stateless Toolkit to produce the tool surface for one call.

枚举常量摘要Enum Constant Summary

常量Constant说明Description
EXTERNAL_ONLY
执行外部 ONLY相关操作。
Use only externally injected tools.
AGENT_ONLY
执行智能体 ONLY相关操作。
Use only the agent's shared toolkit.
MERGE_EXTERNAL_PRIORITY
合并外部优先级。
Merge external tools with the agent's toolkit, external takes priority.

枚举常量详情Enum Constant Detail

EXTERNAL_ONLY

EXTERNAL_ONLY
staticfinal

执行外部 ONLY相关操作。

Use only externally injected tools.

源码Source io/agentscope/core/tool/ToolMergeMode.java:34

AGENT_ONLY

AGENT_ONLY
staticfinal

执行智能体 ONLY相关操作。

Use only the agent's shared toolkit.

源码Source io/agentscope/core/tool/ToolMergeMode.java:42

MERGE_EXTERNAL_PRIORITY

MERGE_EXTERNAL_PRIORITY
staticfinal

合并外部优先级。

Merge external tools with the agent's toolkit, external takes priority.

源码Source io/agentscope/core/tool/ToolMergeMode.java:50
基于官方固定版本源码静态生成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.