AS AgentScopeAPI 手册 / API Reference

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
channelManagerChannelManager渠道管理器(类型 `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
requestOutboundRequest请求(类型 `OutboundRequest`)。The request.
源码Source io/agentscope/builder/runtime/outbound/OutboundService.java:54–104
基于官方固定版本源码静态生成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.