包package
io.agentscope.harness.agent.subagentio.agentscope.harness.agent.subagent
package io.agentscope.harness.agent.subagent
io.agentscope.harness.agent.subagent 属于多智能体与 A2A,委派、团队协作与跨进程通信。 该包共收录 11 个公开类型。
io.agentscope.harness.agent.subagent belongs to the Multi-agent & A2A layer and contains 11 public types.
接口Interfaces
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
SubagentFactory | 接口interface | 定义子智能体工厂契约的接口。 Creates a new subagent instance for a single spawn or session. |
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
AgentSpecLoader | 类class | 智能体规格加载器,支持智能体之间的发现、委派与协作。 Loads `SubagentDeclaration` instances from Markdown files with YAML front matter placed
in the `subagents/` directory of a workspace. |
DefaultAgentManager | 类class | 默认智能体管理器,支持智能体之间的发现、委派与协作。 Pure agent factory and invoker — knows how to create agents from registered factories and invoke
them with a prompt. |
RemoteSubagentStub | 类class | 远程子智能体存根,支持智能体之间的发现、委派与协作。 Placeholder `io.agentscope.core.agent.Agent` for remote (`SubagentDeclaration`)
subagents. |
SubagentDeclaration | 类class | 子智能体 Declaration,支持智能体之间的发现、委派与协作。 Declares a subagent: its identity, workspace resolution strategy, and optional capability
allowlist. |
SubagentSpecGenerator | 类class | 子智能体规格 Generator,支持智能体之间的发现、委派与协作。 LLM-driven generator for `SubagentDeclaration` markdown specs. |
枚举Enums
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
RemoteAskPolicy | 枚举enum | 定义远程 Ask 策略相关取值的枚举。 Policy for resolving a remote subagent's tool-confirmation (HITL) requests when the parent
cannot forward the decision to an interactive human within this call. |
WorkspaceMode | 枚举enum | 定义工作区模式相关取值的枚举。 Controls how a declared subagent's runtime workspace root is determined. |