Add v0.2 surface syntax, writeback/subtask stdlib, and view input deferral.
Use + for parameters, ordered-list branches, backtick identifiers, and quoted strings with escapes. Add writeback and subtask host libs, optional parameter defaults, narrative-bold comment fix, and defer view execution until preset stdin is submitted. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
92d88fe761
commit
63e5be80ab
116 files changed
+2226
-559
No files matched your search
@@ -1,40 +0,0 @@
|
||||
---
|
||||
title: ext/agent run live (DeepSeek)
|
||||
description: Real 执行 via tests/ext/.env (gitignored). Skipped in CI when .env missing.
|
||||
> ext/ai/agent.mq.md
|
||||
> lib/time.mq.md
|
||||
---
|
||||
|
||||
## 获取时间
|
||||
|
||||
*`u` = > now_unix *
|
||||
**> format unix=`u` pattern=%Y%m%d **
|
||||
|
||||
# main
|
||||
|
||||
> load_env
|
||||
|
||||
*`模型` = > llm *
|
||||
|
||||
`工具表` =
|
||||
| 工具 |
|
||||
|------|
|
||||
| 获取时间 |
|
||||
|
||||
*`助手` = > agent model=`模型` tools=`工具表` user_prompt=你是测试助手。需要工具时,必须只回复一行 TOOL:函数名,不要其它文字。 *
|
||||
|
||||
*`id` = > get value=`助手` key=id *
|
||||
|
||||
*`回复` = > `助手`.run extra=请调用获取时间工具,并把当前日期告诉用户。 *
|
||||
|
||||
> print text=`回复`
|
||||
|
||||
*`历史1` = > host_agent_history_get id=`id` *
|
||||
*`条数1` = > len value=`历史1` *
|
||||
> print text=`条数1`
|
||||
|
||||
> `助手`.clear_history
|
||||
|
||||
*`历史2` = > host_agent_history_get id=`id` *
|
||||
*`条数2` = > len value=`历史2` *
|
||||
> print text=`条数2`
|
||||
@@ -20,24 +20,24 @@ description: Ctor, context, clear_history — no network. Gold suite.
|
||||
|
||||
*`has_skill` = > split value=`ctx` sep=Marqdo *
|
||||
*`sk_n` = > len value=`has_skill` *
|
||||
+ `sk_n` > 1
|
||||
1. `sk_n` > 1
|
||||
> print text=skill-ok
|
||||
+ *
|
||||
2. *
|
||||
> print text=skill-missing
|
||||
|
||||
*`has_tools` = > split value=`ctx` sep=获取时间 *
|
||||
*`tool_n` = > len value=`has_tools` *
|
||||
+ `tool_n` > 1
|
||||
1. `tool_n` > 1
|
||||
> print text=tools-ok
|
||||
+ *
|
||||
2. *
|
||||
> print text=tools-missing
|
||||
|
||||
*`src` = > host_module_source *
|
||||
*`has_src` = > split value=`src` sep=probe *
|
||||
*`src_n` = > len value=`has_src` *
|
||||
+ `src_n` > 1
|
||||
1. `src_n` > 1
|
||||
> print text=source-ok
|
||||
+ *
|
||||
2. *
|
||||
> print text=source-missing
|
||||
|
||||
*`turn` = > parse text={"role":"user","content":"one"} *
|
||||
|
||||
Reference in new issue
Block a user