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:34AGENT_ONLY
AGENT_ONLY
staticfinal
执行智能体 ONLY相关操作。
Use only the agent's shared toolkit.
源码Source
io/agentscope/core/tool/ToolMergeMode.java:42MERGE_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