AS AgentScopeAPI 手册 / API Reference

ChatUiChannel

public final class ChatUiChannel implements Channel
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:64–483

聊天 Ui 渠道,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.agent.gateway.channel.chatui 包,实现 Channel。核心成员包括 create、perPeer、init、start、stop、channelId。

Default Channel implementation for direct Chat UI interactions: no external transport, no webhook, no websocket — the caller submits a ChatUiRequest programmatically and receives the agent reply reactively.

Suitable for:

  • Embedded web chat UIs that send HTTP requests to the harness

  • CLI tools and integration tests that need a typed API to the agent

  • Single-agent single-session scenarios where the default DmScope#MAIN collapses all conversations into one session

Obtaining an instance

The recommended way is through io.agentscope.harness.agent.gateway.GatewayBootstrap#chatUiChannel():

`GatewayBootstrap gw = GatewayBootstrap.builder().model(model)
.agent("main", b -> b.name("assistant").sysPrompt("..."))
.build();
ChatUiChannel chat = gw.chatUiChannel();
chat.send("Hello!").block();
`

字段摘要Field Summary

字段Field类型Type说明Description
CHANNEL_ID
staticfinal
String
渠道标识字段。
The CHANNEL ID field.

方法摘要Method Summary

方法Method说明Description
public static ChatUiChannel create()
static
创建聊天 UI 渠道使用默认`DmScope#MAIN`配置。
Creates a Chat UI channel with the default `DmScope#MAIN` config.
public static ChatUiChannel create(ChannelConfig config)
static
创建并返回实例。
Creates a Chat UI channel with an explicit config.
public static ChatUiChannel perPeer()
static
返回每个对端。
Creates a per-peer Chat UI channel.
public static ChatUiChannel create(Gateway gateway)
static
创建并返回实例。
Creates a Chat UI channel with a pre-wired gateway.
public static ChatUiChannel create(Gateway gateway, ChannelConfig config)
static
创建并返回实例。
Creates a Chat UI channel with a pre-wired gateway and explicit config.
public void init(Gateway gateway)
初始化 `ChatUiChannel` 实例。
Creates a new instance.
public void start()
执行启动相关操作。
Returns the start.
public void stop()
执行停止相关操作。
Returns the stop.
public String channelId()
返回渠道标识。
Returns the channel id.
public ChannelConfig config()
返回配置。
Returns the config.
public boolean applyRoutingConfig(ChannelConfig newConfig)
应用路由配置。
Performs the apply routing config operation.
public Mono<Msg> dispatch(InboundMessage message)
设置该参数。
Performs the dispatch operation.
public RouteResult previewRoute(InboundMessage message)
设置预览路由。
Returns the `RouteResult` this channel would produce for `message` without dispatching it.
public void deliver(OutboundAddress address, List<Msg> messages)
执行 `deliver` 方法。
Performs the deliver operation.
public List<OutboundEnvelope> pollOutbound()
返回 `pollOutbound` 结果。
Drains and returns all buffered proactive outbound messages.
public int outboundQueueSize()
返回出站队列大小。
Returns the number of buffered proactive outbound messages.
public Mono<Msg> send(String text)
设置发送。
Sends a plain-text message in single-session mode (no peer id).
public Mono<Msg> send(Msg message)
设置发送。
Sends a pre-built `Msg` (text or multimodal) in single-session mode.
public Mono<Msg> send(List<Msg> messages)
设置发送。
Sends one or more pre-built `Msg`s in single-session mode.
public Mono<Msg> send(String peerId, String text)
执行发送相关操作。
Sends a plain-text message from a specific peer.
public Mono<Msg> send(String peerId, Msg message)
执行发送相关操作。
Sends a pre-built `Msg` from a specific peer.
public Mono<Msg> send(String peerId, List<Msg> messages)
执行发送相关操作。
Sends one or more pre-built `Msg`s from a specific peer.
public Mono<Msg> send(SendOptions options, String text)
执行发送相关操作。
Sends a plain-text message with explicit routing identity.
public Mono<Msg> send(SendOptions options, Msg message)
执行发送相关操作。
Sends a pre-built `Msg` with explicit routing identity.
public Mono<Msg> send(SendOptions options, List<Msg> messages)
执行发送相关操作。
Sends one or more pre-built `Msg`s with explicit routing identity.
public Mono<Msg> sendToSubagent(String subagentId, String text)
发送到子智能体。
Sends a message directly to an exposed subagent, bypassing normal routing.
public Mono<Msg> sendToSubagent(String subagentId, Msg message)
发送到子智能体。
Sends a pre-built `Msg` directly to an exposed subagent.
public Mono<Msg> sendToSubagent(String subagentId, List<Msg> messages)
发送到子智能体。
Sends one or more pre-built `Msg`s directly to an exposed subagent.
public Mono<Msg> send(ChatUiRequest request)
设置发送。
Sends a structured `ChatUiRequest` and returns the agent reply reactively.
public Flux<AgentEvent> dispatchStream(InboundMessage message)
设置该参数。
Performs the dispatch stream operation.
public Flux<AgentEvent> sendStream(String text)
发送流。
Streaming variant of `#send(String)`.
public Flux<AgentEvent> sendStream(Msg message)
发送流。
Streaming variant of `#send(Msg)`.
public Flux<AgentEvent> sendStream(List<Msg> messages)
发送流。
Streaming variant of `#send(List)`.
public Flux<AgentEvent> sendStream(String peerId, String text)
发送流。
Streaming variant of `#send(String, String)`.
public Flux<AgentEvent> sendStream(String peerId, Msg message)
发送流。
Streaming variant of `#send(String, Msg)`.
public Flux<AgentEvent> sendStream(String peerId, List<Msg> messages)
发送流。
Streaming variant of `#send(String, List)`.
public Flux<AgentEvent> sendStream(SendOptions options, String text)
发送流。
Streaming variant of `#send(SendOptions, String)`.
public Flux<AgentEvent> sendStream(SendOptions options, Msg message)
发送流。
Streaming variant of `#send(SendOptions, Msg)`.
public Flux<AgentEvent> sendStream(SendOptions options, List<Msg> messages)
发送流。
Streaming variant of `#send(SendOptions, List)`.
public Flux<AgentEvent> sendToSubagentStream(String subagentId, String text)
发送到子智能体流。
Streaming variant of `#sendToSubagent(String, String)`.
public Flux<AgentEvent> sendToSubagentStream(String subagentId, Msg message)
发送到子智能体流。
Streaming variant of `#sendToSubagent(String, Msg)`.
public Flux<AgentEvent> sendToSubagentStream(String subagentId, List<Msg> messages)
发送到子智能体流。
Streaming variant of `#sendToSubagent(String, List)`.
public Flux<AgentEvent> sendStream(ChatUiRequest request)
发送流。
Streaming variant of `#send(ChatUiRequest)`.

字段详情Field Detail

CHANNEL_ID

public static final String CHANNEL_ID
staticfinal

渠道标识字段。声明为 public static final String CHANNEL_ID。

The CHANNEL ID field.

源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:66

方法详情Method Detail

create

public static ChatUiChannel create()
static

创建聊天 UI 渠道使用默认DmScope#MAIN配置。

Creates a Chat UI channel with the default DmScope#MAIN config.

返回Returns ChatUiChannel
返回ChatUiChannel。Returns chat ui channel.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:85–87

create

public static ChatUiChannel create(ChannelConfig config)
static

创建并返回实例。

Creates a Chat UI channel with an explicit config.

参数Parameters
名称Name类型Type说明Description
configChannelConfig配置对象(类型 `ChannelConfig`)。The config.
返回Returns ChatUiChannel
返回ChatUiChannel。Returns chat ui channel.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:90–92

perPeer

public static ChatUiChannel perPeer()
static

返回每个对端。

Creates a per-peer Chat UI channel.

返回Returns ChatUiChannel
返回ChatUiChannel。Returns chat ui channel.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:95–98

create

public static ChatUiChannel create(Gateway gateway)
static

创建并返回实例。

Creates a Chat UI channel with a pre-wired gateway.

参数Parameters
名称Name类型Type说明Description
gatewayGateway网关(类型 `Gateway`)。The gateway.
返回Returns ChatUiChannel
返回ChatUiChannel。Returns chat ui channel.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:101–104

create

public static ChatUiChannel create(Gateway gateway, ChannelConfig config)
static

创建并返回实例。

Creates a Chat UI channel with a pre-wired gateway and explicit config.

参数Parameters
名称Name类型Type说明Description
gatewayGateway网关(类型 `Gateway`)。The gateway.
configChannelConfig配置对象(类型 `ChannelConfig`)。The config.
返回Returns ChatUiChannel
返回ChatUiChannel。Returns chat ui channel.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:107–109

init

public void init(Gateway gateway)

初始化 ChatUiChannel 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
gatewayGateway网关(类型 `Gateway`)。The gateway.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:115–120

start

public void start()

执行启动相关操作。

Returns the start.

源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:122–123

stop

public void stop()

执行停止相关操作。

Returns the stop.

源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:125–126

channelId

public String channelId()

返回渠道标识。

Returns the channel id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:128–131

config

public ChannelConfig config()

返回配置。

Returns the config.

返回Returns ChannelConfig
返回ChannelConfig。Returns channel config.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:133–136

applyRoutingConfig

public boolean applyRoutingConfig(ChannelConfig newConfig)

应用路由配置。

Performs the apply routing config operation.

参数Parameters
名称Name类型Type说明Description
newConfigChannelConfig新建配置(类型 `ChannelConfig`)。The new config.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:138–146

dispatch

public Mono<Msg> dispatch(InboundMessage message)

设置该参数。

Performs the dispatch operation.

参数Parameters
名称Name类型Type说明Description
messageInboundMessage消息(类型 `InboundMessage`)。The message.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:148–159

previewRoute

public RouteResult previewRoute(InboundMessage message)

设置预览路由。

Returns the RouteResult this channel would produce for message without dispatching it.

参数Parameters
名称Name类型Type说明Description
messageInboundMessage消息(类型 `InboundMessage`)。The message.
返回Returns RouteResult
返回RouteResult。Returns route result.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:165–168

deliver

public void deliver(OutboundAddress address, List<Msg> messages)

执行 deliver 方法。

Performs the deliver operation.

参数Parameters
名称Name类型Type说明Description
addressOutboundAddressaddress(类型 `OutboundAddress`)。The address.
messagesList<Msg>消息列表(类型 `List`)。The messages.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:170–175

pollOutbound

public List<OutboundEnvelope> pollOutbound()

返回 pollOutbound 结果。

Drains and returns all buffered proactive outbound messages.

返回Returns List<OutboundEnvelope>
返回列出。Returns list.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:181–188

outboundQueueSize

public int outboundQueueSize()

返回出站队列大小。

Returns the number of buffered proactive outbound messages.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:191–193

send

public Mono<Msg> send(String text)

设置发送。

Sends a plain-text message in single-session mode (no peer id).

参数Parameters
名称Name类型Type说明Description
textString文本(类型 `String`)。The text.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:200–202

send

public Mono<Msg> send(Msg message)

设置发送。

Sends a pre-built Msg (text or multimodal) in single-session mode.

参数Parameters
名称Name类型Type说明Description
messageMsg消息(类型 `Msg`)。The message.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:219–222

send

public Mono<Msg> send(List<Msg> messages)

设置发送。

Sends one or more pre-built Msgs in single-session mode.

参数Parameters
名称Name类型Type说明Description
messagesList<Msg>消息列表(类型 `List`)。The messages.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:228–230

send

public Mono<Msg> send(String peerId, String text)

执行发送相关操作。

Sends a plain-text message from a specific peer.

参数Parameters
名称Name类型Type说明Description
peerIdString对端标识(类型 `String`)。The peer id.
textString文本(类型 `String`)。The text.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:233–237

send

public Mono<Msg> send(String peerId, Msg message)

执行发送相关操作。

Sends a pre-built Msg from a specific peer.

参数Parameters
名称Name类型Type说明Description
peerIdString对端标识(类型 `String`)。The peer id.
messageMsg消息(类型 `Msg`)。The message.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:240–244

send

public Mono<Msg> send(String peerId, List<Msg> messages)

执行发送相关操作。

Sends one or more pre-built Msgs from a specific peer.

参数Parameters
名称Name类型Type说明Description
peerIdString对端标识(类型 `String`)。The peer id.
messagesList<Msg>消息列表(类型 `List`)。The messages.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:247–250

send

public Mono<Msg> send(SendOptions options, String text)

执行发送相关操作。

Sends a plain-text message with explicit routing identity.

另见See also @see SendOptions#userId(String), @see SendOptions#of(String, String)
参数Parameters
名称Name类型Type说明Description
optionsSendOptions选项(类型 `SendOptions`)。The options.
textString文本(类型 `String`)。The text.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:259–264

send

public Mono<Msg> send(SendOptions options, Msg message)

执行发送相关操作。

Sends a pre-built Msg with explicit routing identity.

参数Parameters
名称Name类型Type说明Description
optionsSendOptions选项(类型 `SendOptions`)。The options.
messageMsg消息(类型 `Msg`)。The message.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:271–275

send

public Mono<Msg> send(SendOptions options, List<Msg> messages)

执行发送相关操作。

Sends one or more pre-built Msgs with explicit routing identity.

参数Parameters
名称Name类型Type说明Description
optionsSendOptions选项(类型 `SendOptions`)。The options.
messagesList<Msg>消息列表(类型 `List`)。The messages.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:281–284

sendToSubagent

public Mono<Msg> sendToSubagent(String subagentId, String text)

发送到子智能体。

Sends a message directly to an exposed subagent, bypassing normal routing.

参数Parameters
名称Name类型Type说明Description
subagentIdString子智能体标识(类型 `String`)。The subagent id.
textString文本(类型 `String`)。The text.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:287–292

sendToSubagent

public Mono<Msg> sendToSubagent(String subagentId, Msg message)

发送到子智能体。

Sends a pre-built Msg directly to an exposed subagent.

参数Parameters
名称Name类型Type说明Description
subagentIdString子智能体标识(类型 `String`)。The subagent id.
messageMsg消息(类型 `Msg`)。The message.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:295–299

sendToSubagent

public Mono<Msg> sendToSubagent(String subagentId, List<Msg> messages)

发送到子智能体。

Sends one or more pre-built Msgs directly to an exposed subagent.

参数Parameters
名称Name类型Type说明Description
subagentIdString子智能体标识(类型 `String`)。The subagent id.
messagesList<Msg>消息列表(类型 `List`)。The messages.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:302–305

send

public Mono<Msg> send(ChatUiRequest request)

设置发送。

Sends a structured ChatUiRequest and returns the agent reply reactively.

参数Parameters
名称Name类型Type说明Description
requestChatUiRequest请求(类型 `ChatUiRequest`)。The request.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:308–314

dispatchStream

public Flux<AgentEvent> dispatchStream(InboundMessage message)

设置该参数。

Performs the dispatch stream operation.

参数Parameters
名称Name类型Type说明Description
messageInboundMessage消息(类型 `InboundMessage`)。The message.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:320–331

sendStream

public Flux<AgentEvent> sendStream(String text)

发送流。

Streaming variant of #send(String).

参数Parameters
名称Name类型Type说明Description
textString文本(类型 `String`)。The text.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:334–336

sendStream

public Flux<AgentEvent> sendStream(Msg message)

发送流。

Streaming variant of #send(Msg).

参数Parameters
名称Name类型Type说明Description
messageMsg消息(类型 `Msg`)。The message.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:339–342

sendStream

public Flux<AgentEvent> sendStream(List<Msg> messages)

发送流。

Streaming variant of #send(List).

参数Parameters
名称Name类型Type说明Description
messagesList<Msg>消息列表(类型 `List`)。The messages.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:345–347

sendStream

public Flux<AgentEvent> sendStream(String peerId, String text)

发送流。

Streaming variant of #send(String, String).

参数Parameters
名称Name类型Type说明Description
peerIdString对端标识(类型 `String`)。The peer id.
textString文本(类型 `String`)。The text.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:350–354

sendStream

public Flux<AgentEvent> sendStream(String peerId, Msg message)

发送流。

Streaming variant of #send(String, Msg).

参数Parameters
名称Name类型Type说明Description
peerIdString对端标识(类型 `String`)。The peer id.
messageMsg消息(类型 `Msg`)。The message.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:357–361

sendStream

public Flux<AgentEvent> sendStream(String peerId, List<Msg> messages)

发送流。

Streaming variant of #send(String, List).

参数Parameters
名称Name类型Type说明Description
peerIdString对端标识(类型 `String`)。The peer id.
messagesList<Msg>消息列表(类型 `List`)。The messages.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:364–367

sendStream

public Flux<AgentEvent> sendStream(SendOptions options, String text)

发送流。

Streaming variant of #send(SendOptions, String).

参数Parameters
名称Name类型Type说明Description
optionsSendOptions选项(类型 `SendOptions`)。The options.
textString文本(类型 `String`)。The text.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:370–375

sendStream

public Flux<AgentEvent> sendStream(SendOptions options, Msg message)

发送流。

Streaming variant of #send(SendOptions, Msg).

参数Parameters
名称Name类型Type说明Description
optionsSendOptions选项(类型 `SendOptions`)。The options.
messageMsg消息(类型 `Msg`)。The message.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:378–382

sendStream

public Flux<AgentEvent> sendStream(SendOptions options, List<Msg> messages)

发送流。

Streaming variant of #send(SendOptions, List).

参数Parameters
名称Name类型Type说明Description
optionsSendOptions选项(类型 `SendOptions`)。The options.
messagesList<Msg>消息列表(类型 `List`)。The messages.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:385–388

sendToSubagentStream

public Flux<AgentEvent> sendToSubagentStream(String subagentId, String text)

发送到子智能体流。

Streaming variant of #sendToSubagent(String, String).

参数Parameters
名称Name类型Type说明Description
subagentIdString子智能体标识(类型 `String`)。The subagent id.
textString文本(类型 `String`)。The text.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:391–396

sendToSubagentStream

public Flux<AgentEvent> sendToSubagentStream(String subagentId, Msg message)

发送到子智能体流。

Streaming variant of #sendToSubagent(String, Msg).

参数Parameters
名称Name类型Type说明Description
subagentIdString子智能体标识(类型 `String`)。The subagent id.
messageMsg消息(类型 `Msg`)。The message.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:399–403

sendToSubagentStream

public Flux<AgentEvent> sendToSubagentStream(String subagentId, List<Msg> messages)

发送到子智能体流。

Streaming variant of #sendToSubagent(String, List).

参数Parameters
名称Name类型Type说明Description
subagentIdString子智能体标识(类型 `String`)。The subagent id.
messagesList<Msg>消息列表(类型 `List`)。The messages.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:406–409

sendStream

public Flux<AgentEvent> sendStream(ChatUiRequest request)

发送流。

Streaming variant of #send(ChatUiRequest).

参数Parameters
名称Name类型Type说明Description
requestChatUiRequest请求(类型 `ChatUiRequest`)。The request.
返回Returns Flux<AgentEvent>
返回Flux。Returns flux.
源码Source io/agentscope/harness/agent/gateway/channel/chatui/ChatUiChannel.java:412–418

继承成员Inherited Members

继承自Methods inherited from Channel
基于官方固定版本源码静态生成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.