AS AgentScopeAPI 手册 / API Reference

ChannelWorkBridge

@Component @EnableScheduling public class ChannelWorkBridge
源码Source io/agentscope/builder/web/managed/ChannelWorkBridge.java:41–186

渠道 Work Bridge,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.managed 包。核心成员包括 receive、deliverPending、ChannelWorkBridge。

Authenticated, durable work intake. The control plane resolves the human identity and target.

构造器摘要Constructor Summary

构造器Constructor说明Description
public ChannelWorkBridge(WebClient control, ManagedSessionChannelBridge chat, ChannelManager channels)
初始化 `ChannelWorkBridge` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Mono<Msg> receive(InboundMessage in)
设置接收。
Performs the receive operation.
public void deliverPending()
执行 `deliverPending` 方法。
A claimed delivery is never reported as accepted until the provider returns a message ID.

构造器详情Constructor Detail

ChannelWorkBridge

public ChannelWorkBridge(WebClient control, ManagedSessionChannelBridge chat, ChannelManager channels)

初始化 ChannelWorkBridge 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
controlWebClientcontrol(类型 `WebClient`)。The control.
chatManagedSessionChannelBridge聊天(类型 `ManagedSessionChannelBridge`)。The chat.
channelsChannelManager渠道(类型 `ChannelManager`)。The channels.
源码Source io/agentscope/builder/web/managed/ChannelWorkBridge.java:49–56

方法详情Method Detail

receive

public Mono<Msg> receive(InboundMessage in)

设置接收。

Performs the receive operation.

参数Parameters
名称Name类型Type说明Description
inInboundMessagein(类型 `InboundMessage`)。The in.
返回Returns Mono<Msg>
返回Mono。Returns mono.
源码Source io/agentscope/builder/web/managed/ChannelWorkBridge.java:58–100

deliverPending

public void deliverPending()

执行 deliverPending 方法。

A claimed delivery is never reported as accepted until the provider returns a message ID.

源码Source io/agentscope/builder/web/managed/ChannelWorkBridge.java:103–150
基于官方固定版本源码静态生成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.