AS AgentScopeAPI 手册 / API Reference

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
channelIdString
执行渠道标识相关操作。
originating channel id (e.g. `"chatui"`, `"dingtalk"`); may be null
inboundMessageInboundMessage
执行入站消息相关操作。
the normalized inbound envelope when the turn came through `Channel#dispatch`; `null` for programmatic `SendOptions` paths that skip an inbound envelope
msgContextMsgContext
用于此轮次的已解析路由上下文。
resolved routing context for this turn
outboundAddressOutboundAddress
执行 `outboundAddress` 方法。
delivery target for replies; may be null
callerContextRuntimeContext
执行 `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–40

inboundMessage

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–40

msgContext

MsgContext msgContext

用于此轮次的已解析路由上下文。

resolved routing context for this turn

源码Source io/agentscope/harness/agent/gateway/channel/ChannelRuntimeContextRequest.java:35–40

outboundAddress

OutboundAddress outboundAddress

执行 outboundAddress 方法。

delivery target for replies; may be null

源码Source io/agentscope/harness/agent/gateway/channel/ChannelRuntimeContextRequest.java:35–40

callerContext

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