AS AgentScopeAPI 手册 / API Reference

OutboundTool

public final class OutboundTool
源码Source io/agentscope/builder/runtime/outbound/OutboundTool.java:30–107

出站工具,封装可被智能体调用的能力。位于 io.agentscope.builder.runtime.outbound 包。核心成员包括 send、OutboundTool。

Agent-facing tool for proactive outbound delivery into any registered channel (DingTalk, WeCom, ...). Registered onto an agent's toolkit by the hosting plane's agent assembly.

The agent supplies the target (channel_id + peer_kind + peer_id) and either text or markdown. The tool returns a short status string.

构造器摘要Constructor Summary

构造器Constructor说明Description
public OutboundTool(ChannelManager channelManager)
初始化 `OutboundTool` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String send(String channelId, String peerKind, String peerId, String text, String markdown, String accountId, String threadId, String agentId)
执行发送相关操作。
Performs the send operation.

构造器详情Constructor Detail

OutboundTool

public OutboundTool(ChannelManager channelManager)

初始化 OutboundTool 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
channelManagerChannelManager渠道管理器(类型 `ChannelManager`)。The channel manager.
源码Source io/agentscope/builder/runtime/outbound/OutboundTool.java:34–37

方法详情Method Detail

send

public String send(String channelId, String peerKind, String peerId, String text, String markdown, String accountId, String threadId, String agentId)

执行发送相关操作。

Performs the send operation.

参数Parameters
名称Name类型Type说明Description
channelIdString渠道标识(类型 `String`)。The channel id.
peerKindString对端种类(类型 `String`)。The peer kind.
peerIdString对端标识(类型 `String`)。The peer id.
textString文本(类型 `String`)。The text.
markdownStringmarkdown(类型 `String`)。The markdown.
accountIdStringaccount 标识(类型 `String`)。The account id.
threadIdString会话线程标识(类型 `String`)。The thread id.
agentIdString智能体标识(类型 `String`)。The agent id.
返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/runtime/outbound/OutboundTool.java:39–106
基于官方固定版本源码静态生成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.