AS AgentScopeAPI 手册 / API Reference

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
ctxMsgContext运行时上下文(类型 `MsgContext`)。inbound routing context
outboundOutboundAddress出站(类型 `OutboundAddress`)。delivery address constructed by the channel router (may be null)
dmScopeStringdm 范围(类型 `String`)。channel-level scope string; blank/null treated as `MAIN`
返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/managed/ChannelExternalKeys.java:40–69
基于官方固定版本源码静态生成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.