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:79SUBAGENT
SUBAGENT
staticfinal
执行子智能体相关操作。
Performs the SUBAGENT operation.
源码Source
io/agentscope/harness/agent/subagent/SubagentDeclaration.java:80ALL
ALL
staticfinal
执行所有相关操作。
Performs the ALL operation.
源码Source
io/agentscope/harness/agent/subagent/SubagentDeclaration.java:81