ChannelRuntimeContextRequest
public record ChannelRuntimeContextRequest( String channelId, InboundMessage inboundMessage, MsgContext msgContext, OutboundAddress outboundAddress, RuntimeContext callerContext)
源码Source
io/agentscope/harness/agent/gateway/channel/ChannelRuntimeContextRequest.java:35–40承载渠道运行时上下文请求数据的记录类型。位于 io.agentscope.harness.agent.gateway.channel 包。核心成员包括 channelId、inboundMessage、msgContext、outboundAddress、callerContext。
Inputs available to a ChannelRuntimeContextResolver when resolving caller context for a
Gateway turn.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
channelId | String | 执行渠道标识相关操作。 originating channel id (e.g. `"chatui"`, `"dingtalk"`); may be null |
inboundMessage | InboundMessage | 执行入站消息相关操作。 the normalized inbound envelope when the turn came through `Channel#dispatch`; `null` for programmatic `SendOptions` paths that skip an
inbound envelope |
msgContext | MsgContext | 用于此轮次的已解析路由上下文。 resolved routing context for this turn |
outboundAddress | OutboundAddress | 执行 `outboundAddress` 方法。 delivery target for replies; may be null |
callerContext | RuntimeContext | 执行 `callerContext` 方法。 context carried on `io.agentscope.harness.agent.gateway.channel.chatui.SendOptions` or `InboundMessage`;
may be null |
记录组件详情Record Component Detail
channelId
String channelId执行渠道标识相关操作。
originating channel id (e.g. "chatui", "dingtalk"); may be null
源码Source
io/agentscope/harness/agent/gateway/channel/ChannelRuntimeContextRequest.java:35–40inboundMessage
InboundMessage inboundMessage执行入站消息相关操作。
the normalized inbound envelope when the turn came through Channel#dispatch; null for programmatic SendOptions paths that skip an
inbound envelope
源码Source
io/agentscope/harness/agent/gateway/channel/ChannelRuntimeContextRequest.java:35–40msgContext
MsgContext msgContext用于此轮次的已解析路由上下文。
resolved routing context for this turn
源码Source
io/agentscope/harness/agent/gateway/channel/ChannelRuntimeContextRequest.java:35–40outboundAddress
OutboundAddress outboundAddress执行 outboundAddress 方法。
delivery target for replies; may be null
源码Source
io/agentscope/harness/agent/gateway/channel/ChannelRuntimeContextRequest.java:35–40callerContext
RuntimeContext callerContext执行 callerContext 方法。
context carried on io.agentscope.harness.agent.gateway.channel.chatui.SendOptions or InboundMessage;
may be null
源码Source
io/agentscope/harness/agent/gateway/channel/ChannelRuntimeContextRequest.java:35–40