AS AgentScopeAPI 手册 / API Reference

ToolGroupScope

public enum ToolGroupScope
源码Source io/agentscope/core/tool/ToolGroupScope.java:29–42

定义工具组范围相关取值的枚举。位于 io.agentscope.core.tool 包。核心成员包括 META、EXTERNAL。

Defines who manages a ToolGroup's activation lifecycle.

  • #META — managed by the agent via the reset_equipped_tools meta tool. These groups appear in the meta tool's parameter enum and follow replacement semantics: only groups explicitly listed in the to_activate parameter remain active.

  • #EXTERNAL — managed by developer code (e.g., programmatic activation/deactivation). These groups are invisible to the meta tool and unaffected by its calls.

枚举常量摘要Enum Constant Summary

常量Constant说明Description
META
组是托管通过元数据工具(`reset_equipped_tools`)。
The group is managed by the meta tool (`reset_equipped_tools`).
EXTERNAL
执行外部相关操作。
The group is managed externally by developer code.

枚举常量详情Enum Constant Detail

META

META
staticfinal

组是托管通过元数据工具(reset_equipped_tools)。

The group is managed by the meta tool (reset_equipped_tools).

源码Source io/agentscope/core/tool/ToolGroupScope.java:35

EXTERNAL

EXTERNAL
staticfinal

执行外部相关操作。

The group is managed externally by developer code.

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