AS AgentScopeAPI 手册 / API Reference

Mode

public enum Mode
源码Source io/agentscope/harness/agent/subagent/SubagentDeclaration.java:78–82

定义模式相关取值的枚举。位于 io.agentscope.harness.agent.subagent 包。核心成员包括 PRIMARY、SUBAGENT、ALL。

Whether a declaration can be used as a top-level primary agent, only as a delegated subagent, or both.

The io.agentscope.harness.agent.subagent.DefaultAgentManager#createAgentIfPresent path rejects spawn requests for #PRIMARY-only declarations so they can never be invoked as workers; conversely, top-level launchers may want to reject #SUBAGENT declarations as entry points (current core does not own that check — top-level launch goes through HarnessAgent.builder() directly, not through a declaration).

枚举常量摘要Enum Constant Summary

常量Constant说明Description
PRIMARY
执行 `PRIMARY` 方法。
Performs the PRIMARY operation.
SUBAGENT
执行子智能体相关操作。
Performs the SUBAGENT operation.
ALL
执行所有相关操作。
Performs the ALL operation.

枚举常量详情Enum Constant Detail

PRIMARY

PRIMARY
staticfinal

执行 PRIMARY 方法。

Performs the PRIMARY operation.

源码Source io/agentscope/harness/agent/subagent/SubagentDeclaration.java:79

SUBAGENT

SUBAGENT
staticfinal

执行子智能体相关操作。

Performs the SUBAGENT operation.

源码Source io/agentscope/harness/agent/subagent/SubagentDeclaration.java:80

ALL

ALL
staticfinal

执行所有相关操作。

Performs the ALL operation.

源码Source io/agentscope/harness/agent/subagent/SubagentDeclaration.java:81
基于官方固定版本源码静态生成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.