AS AgentScopeAPI 手册 / API Reference
包package io.agentscope.harness.agent.subagent

io.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.

所属构件Artifacts agentscope-harness

接口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.
基于官方固定版本源码静态生成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.