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 |
|---|---|---|
channelManager | ChannelManager | 渠道管理器(类型 `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 |
|---|---|---|
channelId | String | 渠道标识(类型 `String`)。The channel id. |
peerKind | String | 对端种类(类型 `String`)。The peer kind. |
peerId | String | 对端标识(类型 `String`)。The peer id. |
text | String | 文本(类型 `String`)。The text. |
markdown | String | markdown(类型 `String`)。The markdown. |
accountId | String | account 标识(类型 `String`)。The account id. |
threadId | String | 会话线程标识(类型 `String`)。The thread id. |
agentId | String | 智能体标识(类型 `String`)。The agent id. |
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/runtime/outbound/OutboundTool.java:39–106