OutboundService
public final class OutboundService
源码Source
io/agentscope/builder/runtime/outbound/OutboundService.java:42–161出站服务,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.runtime.outbound 包。核心成员包括 send、OutboundService。
Translates an OutboundRequest into an OutboundAddress + Msg and pushes
it through the ChannelManager.
Used by both OutboundController (HTTP) and OutboundTool (agent tool). Errors
are surfaced as IllegalArgumentException (bad request) or IllegalStateException
(no such channel / channel unhealthy).
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public OutboundService(ChannelManager channelManager) | 初始化 `OutboundService` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public void send(OutboundRequest request) | 设置发送。 Delivers the message described by `request`. |
构造器详情Constructor Detail
OutboundService
public OutboundService(ChannelManager channelManager)
初始化 OutboundService 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
channelManager | ChannelManager | 渠道管理器(类型 `ChannelManager`)。The channel manager. |
源码Source
io/agentscope/builder/runtime/outbound/OutboundService.java:49–51方法详情Method Detail
send
public void send(OutboundRequest request)
设置发送。
Delivers the message described by request.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
request | OutboundRequest | 请求(类型 `OutboundRequest`)。The request. |
源码Source
io/agentscope/builder/runtime/outbound/OutboundService.java:54–104