mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-19 10:33:17 +08:00
初始化:独立 oclaw 仓库首提交
- 在 oclaw/ 下重新初始化 Git 仓库 - 补齐子仓库 .gitignore,避免提交本地运行态数据(_local、node_modules、logs 等) - 提交当前工程代码与配置 Made-with: Cursor
This commit is contained in:
commit
ba3836f00f
579 changed files with 83112 additions and 0 deletions
25
prompts_openclaw/router/decide_route.md
Normal file
25
prompts_openclaw/router/decide_route.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: oclaw_router_decide_route
|
||||
summary: LLM JSON routing prompt for sync vs async oclaw turns (Chinese only).
|
||||
read_when: AIA_OPENCLAW_ROUTER_MODE=llm_json
|
||||
---
|
||||
# 路由决策(结构化输出)
|
||||
|
||||
你需要判断当前用户输入应采用哪种执行模式:
|
||||
|
||||
- `sync_direct`:当前请求内直接回复(默认)。
|
||||
- `async_task`:明确是多步骤后台流程(例如“总结并发送”)、或输入极大且带附件。
|
||||
|
||||
## 输入
|
||||
- 用户文本:
|
||||
```
|
||||
{{user_text}}
|
||||
```
|
||||
- 是否有附件:`{{has_attachments}}`
|
||||
|
||||
## 输出(严格)
|
||||
只返回一行 JSON,不要 Markdown、不要解释:
|
||||
|
||||
`{"mode":"sync_direct"|"async_task","reason":"<简短原因>"}`
|
||||
|
||||
默认倾向 `sync_direct`,只有明确需要异步才选 `async_task`。
|
||||
Loading…
Add table
Add a link
Reference in a new issue