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

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

所属构件Artifacts agentscope-harness

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