Enable default writeback on agent step and lock the plan design.

Document multi-step workbooks in ext-agent-plan, and make step/单步 persist ok/error slots unless writeback is turned off.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-07 13:47:34 +08:00
1 parent 1f23e2ed93
commit fbece725e1
9 files changed
+383 -80

No files matched your search

+10 -11
View File
@@ -1,6 +1,6 @@
---
title: ext/agent step (DeepSeek)
description: Real agent.step with tool via lib/subtask. Credentials from tests/ext/.env.
description: Real agent.step with tool via lib/subtask; default writeback to ok/error slots.
> lib/time.mq.md
> lib/writeback.mq.md
> lib/json.mq.md
@@ -28,21 +28,20 @@ description: Real agent.step with tool via lib/subtask. Credentials from tests/e
*`助手` = > agent.agent model=`模型` tools=`工具表` standing=You are a Marqdo agent. When you need the current date, reply with exactly one line CALL:获取时间 and nothing else. *
*`out` = > `助手`.step task=请调用获取时间工具,然后用一句话告诉用户今天的日期。 *
*`status` = > json.get value=`out` key=status *
*`回复` = > json.get value=`out` key=result *
*`body` = > json.stringify value=`out` *
> print text=`回复`
1. `status` == ok
> writeback.record value=`body` key=ok
<!-- marqdo-out ok
{"decision":"CALL:获取时间","result":"今天是2026年8月7日。","status":"ok","task":"请调用获取时间工具,然后用一句话告诉用户今天的日期。","tool":"获取时间","tool_result":"\"2026-08-07\""}
-->
*`status` = > json.get value=`out` key=status *
*`回复` = > json.get value=`out` key=result *
> print text=`回复`
*`cached` = > writeback.get key=ok *
1. `cached`
> print text=writeback-ok
2. *
> writeback.record value=`body` key=error
> print text=writeback-missing
*`id` = > json.get value=`助手` key=id *
*`历史` = > agent_history_get id=`id` *