包package
io.agentscope.harness.agent.gatewayio.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.
接口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. |