ChannelExternalKeys
public final class ChannelExternalKeys
源码Source
io/agentscope/builder/web/managed/ChannelExternalKeys.java:31–94渠道外部密钥,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.managed 包。核心成员包括 forInbound。
Builds stable externalKey values for managed-session find-or-create, aligned with
channel dmScope:
-
MAIN DMs →
{channelId}|main -
PER_PEER DMs / groups →
{channelId}|{peerKind}|{peerId}from the outbound address -
Groups always use the group peer id even under MAIN (so group and DM never share a slot)
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static String forInbound(MsgContext ctx, OutboundAddress outbound, String dmScope)static | 执行用于入站相关操作。 Performs the for inbound operation. |
方法详情Method Detail
forInbound
public static String forInbound(MsgContext ctx, OutboundAddress outbound, String dmScope)
static
执行用于入站相关操作。
Performs the for inbound operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ctx | MsgContext | 运行时上下文(类型 `MsgContext`)。inbound routing context |
outbound | OutboundAddress | 出站(类型 `OutboundAddress`)。delivery address constructed by the channel router (may be null) |
dmScope | String | dm 范围(类型 `String`)。channel-level scope string; blank/null treated as `MAIN` |
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/managed/ChannelExternalKeys.java:40–69