oclaw/prompts/router/decide_route.md
oliver 4a23b715a2 重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。

Made-with: Cursor
2026-04-25 01:24:23 +08:00

25 lines
754 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: oclaw_router_decide_route
summary: LLM JSON routing prompt for sync vs async oclaw turns (Chinese only).
read_when: AIA_OCLAW_ROUTER_MODE=llm_json
---
# 路由决策(结构化输出)
你需要判断当前用户输入应采用哪种执行模式:
- `sync_direct`:当前请求内直接回复(默认)。
- `async_task`:明确是多步骤后台流程(例如“总结并发送”)、或输入极大且带附件。
## 输入
- 用户文本:
```
{{user_text}}
```
- 是否有附件:`{{has_attachments}}`
## 输出(严格)
只返回一行 JSON,不要 Markdown、不要解释:
`{"mode":"sync_direct"|"async_task","reason":"<简短原因>"}`
默认倾向 `sync_direct`,只有明确需要异步才选 `async_task`。