Agent Send Tool
Agent 发送工具用于在 agent 之间传递消息。
功能
- Agent 间消息路由
- 消息队列支持
- 优先级设置
- 消息确认机制
使用方法
typescript
import { agentSend } from 'openclaw/tools'
// 发送消息到其他 agent
await agentSend({
to: 'another-agent',
message: {
type: 'task',
payload: { task: 'process_data' }
},
priority: 'high'
})配置
json
{
"agentSend": {
"timeout": 30000,
"retry": 3,
"queueSize": 100
}
}消息类型
| 类型 | 描述 |
|---|---|
task | 任务消息 |
event | 事件消息 |
response | 响应消息 |
error | 错误消息 |