- CHANGELOG.md:v2.8.0 条目(中英双语); - README.md:版本行 2.7.1→2.8.0 + 愿景第 6 条(知识可证明); - doc/releases/v2.8.0.md:双语发版说明(亮点/用法/已知限制); - skills/marqdo-dev/index.mq.md:新增 prove 任务(路径/目录模式/ require_lean/json;参数用 + 行声明升参,check 与 narrative-ratio 通过); - 设计文档 §12.5 标记已合入;发版链接统一指向 doc/releases/v2.8.0.md。
1.5 KiB
Executable File
1.5 KiB
Executable File
markup, title, description, import
| markup | title | description | import | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| occlusion | ext/agent step (DeepSeek) | Real agent.step with tool via lib/subtask; default writeback to ok/error slots. |
|
获取时间
u = > time.now_unix
s = > time.format unix=u pattern="%Y-%m-%d"
s
main
llm.load_env path="../../.env"
模型 = > llm.llm
工具表 =
| 工具 |
|---|
| 获取时间 |
助手 = > 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"
print text=
回复
cached = > writeback.get key="ok"
cached
print text=writeback-ok
print text=writeback-missing
id = > json.get value=助手 key="id"
历史 = > agent_history_get id=id
条数 = > len value=历史
print text=
条数
助手.clear_history
历史2 = > agent_history_get id=id
条数2 = > len value=历史2
print text=
条数2