包package
io.agentscope.harness.agent.gateway.channelio.agentscope.harness.agent.gateway.channel
package io.agentscope.harness.agent.gateway.channel
io.agentscope.harness.agent.gateway.channel 属于运行时与部署,服务化、调度、控制面与 Web 应用。 该包共收录 15 个公开类型。
io.agentscope.harness.agent.gateway.channel belongs to the Runtime & deployment layer and contains 15 public types.
接口Interfaces
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
Channel | 接口interface | 定义渠道契约的接口。 Channel adapter — ingests inbound messages from one messaging platform (or a programmatic
caller), routes them through `ChannelRouter` to resolve the target agent and session, and
delegates execution to `Gateway`. |
ChannelFactory | 接口interface | 定义渠道工厂契约的接口。 Constructs a `Channel` instance from the resolved routing config and provider-specific
properties. |
ChannelRuntimeContextResolver | 接口interface | 定义渠道运行时上下文解析器契约的接口。 Resolves a caller-provided `RuntimeContext` for a Channel / Gateway turn. |
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
ChannelRouter | 类class | 渠道路由器,承载智能体的部署、调度与服务化运行。 Resolves the target `agentId` and stable `MsgContext` for an `InboundMessage`
by evaluating `ChannelBinding` rules in deterministic priority order. |
枚举Enums
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
DmScope | 枚举enum | 定义Dm 范围相关取值的枚举。 Controls how DM (`PeerKind#DIRECT`) session keys are scoped. |
PeerKind | 枚举enum | 定义对端种类相关取值的枚举。 Classification of the conversation peer, used for session key construction and DM-scope
resolution. |
记录Records
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
ChannelBinding | 记录record | 承载渠道绑定数据的记录类型。 One routing rule that maps a set of inbound-message conditions to a target `agentId`. |
ChannelConfig | 记录record | 承载渠道配置数据的记录类型。 Per-channel routing configuration: default agent fallback, DM session scope, and ordered binding
rules evaluated by `ChannelRouter`. |
ChannelRuntimeContextRequest | 记录record | 承载渠道运行时上下文请求数据的记录类型。 Inputs available to a `ChannelRuntimeContextResolver` when resolving caller context for a
Gateway turn. |
InboundMessage | 记录record | 承载入站消息数据的记录类型。 Normalized inbound message produced by a `Channel` adapter before routing. |
OutboundAddress | 记录record | 承载出站 Address数据的记录类型。 Delivery target for outbound (proactive) messages. |
Peer | 记录record | 承载对端数据的记录类型。 Identifies the conversation peer: who or what is being messaged (a user DM, a channel, a group,
or a thread). |
RouteResult | 记录record | 承载路由结果数据的记录类型。 Output of `ChannelRouter#resolveRoute`: the resolved agent id, the `MsgContext` to
pass to `io.agentscope.harness.agent.gateway.Gateway#run`, a diagnostic `matchedBy`
label indicating which binding tier (or fallback) produced the result, and the `OutboundAddress` for delivering replies back to the originating channel/peer. |