49 lines
1.7 KiB
Markdown
49 lines
1.7 KiB
Markdown
|
|
# TYCM OEM审核路由协议
|
|||
|
|
|
|||
|
|
本技能只负责根据 `oemId` 选择并调用审核子 Agent,不调用 TYCM 回调接口。固定映射:
|
|||
|
|
|
|||
|
|
| oemId | 品牌 | 子Agent用途 | agentId | agentName | subAgentKey |
|
|||
|
|
|---:|---|---|---:|---|---|
|
|||
|
|
| 2 | 长安 | 长安新车审核子Agent | 6 | `agent_c020c385` | `changan_new_car_audit` |
|
|||
|
|
| 11 | 赛力斯 | 赛力斯审核子Agent | 9 | `agent_6a442e52` | `seres_new_car_audit` |
|
|||
|
|
| 16 | 阿维塔 | 阿维塔审核子Agent | 10 | `agent_7d380038` | `avatr_new_car_audit` |
|
|||
|
|
|
|||
|
|
## oemId 提取优先级
|
|||
|
|
|
|||
|
|
1. `input.oemId`
|
|||
|
|
2. `input.message.oemId`
|
|||
|
|
3. `input.message.data.oemId`
|
|||
|
|
4. 当 `message` 是 JSON 字符串时,先解析后按上述字段读取
|
|||
|
|
|
|||
|
|
## 子Agent调用
|
|||
|
|
|
|||
|
|
默认 `invoke=true`,本技能调用 AIflow:
|
|||
|
|
|
|||
|
|
```text
|
|||
|
|
POST /open/netaclaw/chat
|
|||
|
|
Content-Type: application/json
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
请求体:
|
|||
|
|
|
|||
|
|
```json
|
|||
|
|
{
|
|||
|
|
"message": "{\"orderNo\":\"...\",\"oemId\":16,\"data\":{}}",
|
|||
|
|
"agentName": "agent_7d380038",
|
|||
|
|
"sessionId": "optional",
|
|||
|
|
"userId": "optional"
|
|||
|
|
}
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
`agentName` 使用 AIflow Agent 的内部名称,不是显示名称。HTTP `/open/netaclaw/chat` 当前按 `agentName` 调用,`agentId` 作为路由结果返回,方便日志和排查。
|
|||
|
|
|
|||
|
|
默认 `stripCallbackUrl=true`,调用子 Agent 前会从转发消息中移除 `callbackUrl`,避免子 Agent 调用 TYCM 回调。确实需要把回调地址传给子 Agent 时,显式传 `stripCallbackUrl:false`。
|
|||
|
|
|
|||
|
|
## 回调边界
|
|||
|
|
|
|||
|
|
本技能不调用 TYCM 回调接口,也不调用 `tycm-callback`。它只负责路由和调用子 Agent,并把子 Agent 响应返回给调用方。
|
|||
|
|
|
|||
|
|
## 失败处理
|
|||
|
|
|
|||
|
|
不支持的 `oemId`、缺少 `chatUrl` 或子 Agent HTTP 调用失败时,本技能返回 `success:false`。本技能不会额外通知 TYCM。
|