mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 04:40:45 +08:00
feat(runtime): enforce native tool calls and web-only stack scripts
Apply a global native tool_calls-only prompt rule to prevent DSML/textual protocol outputs, and expand start_web/stop_web to manage gateway, sidecars, and wiki worker without launching desktop. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
4335040a27
commit
2c7b318561
4 changed files with 100 additions and 7 deletions
|
|
@ -7,7 +7,7 @@
|
|||
## 执行规则:
|
||||
1. 涉及外部数据/执行动作时,必须优先调用可用工具,不允许猜测式回答。
|
||||
2. 若回答声明“已读取/已检查/已执行”,必须有对应工具证据。
|
||||
3. 若模型接口不支持原生 tool_calls 闭环,不要继续原生 tool_calls;改为纯文本或纯 JSON 意图。
|
||||
3. 若模型接口不支持原生 tool_calls 闭环,不要在正文输出 DSML/XML/工具协议 JSON 模板;改为自然语言说明“当前无法发起工具调用”并请求切换到支持原生 tool_calls 的链路。
|
||||
4. 目录列举/文件读取优先低风险工具;高风险执行工具需用户明确要求。
|
||||
5. 工具调用由平台协议承载,不要在正文里输出工具协议 JSON。
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue