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

io.agentscope.harness.agent.gateway

package io.agentscope.harness.agent.gateway

io.agentscope.harness.agent.gateway 属于运行时与部署,服务化、调度、控制面与 Web 应用。 该包共收录 20 个公开类型。

io.agentscope.harness.agent.gateway belongs to the Runtime & deployment layer and contains 20 public types.

所属构件Artifacts agentscope-harness

接口Interfaces

类型Type种类Kind说明Description
Gateway接口interface
定义网关契约的接口。
Gateway-style entrypoint: route inbound turns by `MsgContext`, and bind the primary `HarnessAgent` for announce delivery.
SessionTurnGate接口interface
定义会话轮次 Gate契约的接口。
Per-key mutual exclusion for gateway turns (user/channel inbound runs and subagent notification).
SubagentGatewayBridge接口interface
定义子智能体网关 Bridge契约的接口。
Bridge between `io.agentscope.harness.agent.tool.AgentSpawnTool` and the gateway layer.
SubagentMaterializer接口interface
定义子智能体物化器契约的接口。
Rebuilds a subagent `Agent` instance from its type id.
SubagentRegistry接口interface
定义子智能体注册表契约的接口。
Durable registry of exposed subagents, keyed by `subagentId`.
TurnLease接口interface
定义轮次 Lease契约的接口。
A handle representing an acquired session turn slot.

类Classes

类型Type种类Kind说明Description
ChannelManager类class
渠道管理器,承载智能体的部署、调度与服务化运行。
Registry and lifecycle manager for `Channel` adapters.
GatewayBootstrap类class
网关 Bootstrap,承载智能体的部署、调度与服务化运行。
Multi-agent + channel routing bootstrap.
HarnessGateway类class
Harness 网关,承载智能体的部署、调度与服务化运行。
Default `Gateway` implementation.
InMemorySubagentRegistry类class
In 记忆子智能体注册表,承载智能体的部署、调度与服务化运行。
Default single-process `SubagentRegistry`.
LocalSessionTurnGate类class
本地会话轮次 Gate,承载智能体的部署、调度与服务化运行。
Process-local fair per-key mutual exclusion for gateway turns.
SessionIdUtils类class
会话标识 Utils,承载智能体的部署、调度与服务化运行。
Deterministic session-ID derivation.
StoreBackedSubagentRegistry类class
存储 Backed 子智能体注册表,承载智能体的部署、调度与服务化运行。
Distributed `SubagentRegistry` backed by a `BaseStore`.
TurnBusyException类class
轮次 Busy 异常,表示执行过程中的错误。
Thrown when a session turn gate cannot be acquired because another turn holds the lock.
WakeupDispatcher类class
Wakeup 调度器,承载智能体的部署、调度与服务化运行。
Per-process dispatcher that wakes idle sessions when background work completes.

记录Records

类型Type种类Kind说明Description
MsgContext记录record
承载消息上下文数据的记录类型。
Routing context for inbound turns (direct API, channel adapter, group/room/thread).
SubagentRecord记录record
承载子智能体记录数据的记录类型。
Durable, recovery-oriented descriptor of an exposed subagent.
基于官方固定版本源码静态生成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.