feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
bfb10d172b
commit
b5c07385e9
324 files changed
+4572
-4339
No files matched your search
@@ -9,17 +9,17 @@ import fs:lib/fs.mq.md
|
||||
|
||||
# main
|
||||
|
||||
*`goal`=> input "你想完成什么任务?"*
|
||||
**`goal`=> input "你想完成什么任务?"**
|
||||
|
||||
> llm.load_env path=.env
|
||||
|
||||
*`model` = > llm.llm *
|
||||
*`tools` = > json.parse text=[] *
|
||||
*`助手` = > agent.agent model=`model` tools=`tools` standing=You are a Marqdo agent-development master. Prefer DONE when the workbook already satisfies the goal. *
|
||||
**`model` = > llm.llm **
|
||||
**`tools` = > json.parse text=[] **
|
||||
**`助手` = > agent.agent model=`model` tools=`tools` standing=You are a Marqdo agent-development master. Prefer DONE when the workbook already satisfies the goal. **
|
||||
|
||||
流式开在 plan 上:非命中先 plan:decompose(父分解增量),再 plan:await(子 quiet),然后父修订轮。
|
||||
|
||||
*`out` = > `助手`.plan goal=`goal` max_rounds=3 writeback=False stream=True echo=True force=True *
|
||||
**`out` = > `助手`.plan goal=`goal` max_rounds=3 writeback=False stream=True echo=True force=True **
|
||||
|
||||
*`result` = > json.get value=`out` key=result *
|
||||
**`result` = > json.get value=`out` key=result **
|
||||
> print text=`result`
|
||||
@@ -5,8 +5,8 @@ description: AI禁止更改
|
||||
|
||||
# main
|
||||
|
||||
*`a` = True*
|
||||
*`b` = False*
|
||||
**`a` = True**
|
||||
**`b` = False**
|
||||
|
||||
1. `a` and not `b`
|
||||
> print text=ok
|
||||
|
||||
@@ -7,6 +7,6 @@ description: AI禁止更改
|
||||
|
||||
测试输入
|
||||
|
||||
*`name`=> input "你叫什么名字\n"*
|
||||
**`name`=> input "你叫什么名字\n"**
|
||||
|
||||
> print `name`
|
||||
@@ -16,18 +16,18 @@ $$
|
||||
x^2 - 2
|
||||
$$
|
||||
|
||||
*`ty` = > type `f` *
|
||||
**`ty` = > type `f` **
|
||||
|
||||
> print text=`ty`
|
||||
|
||||
*`df` = > math.diff formula=`f` var=x *
|
||||
**`df` = > math.diff formula=`f` var=x **
|
||||
|
||||
> print text=`df`
|
||||
|
||||
*`roots` = > math.solve formula=`f` var=x *
|
||||
**`roots` = > math.solve formula=`f` var=x **
|
||||
|
||||
> print text=`roots`
|
||||
|
||||
*`y` = > math.eval formula=`f` var=x value=3 *
|
||||
**`y` = > math.eval formula=`f` var=x value=3 **
|
||||
|
||||
> print text=`y`
|
||||
@@ -8,7 +8,7 @@ import writeback:lib/writeback.mq.md
|
||||
|
||||
测试写回库
|
||||
|
||||
*`name`=>input "你叫什么名字?\n"*
|
||||
**`name`=>input "你叫什么名字?\n"**
|
||||
|
||||
> writeback.record `name`
|
||||
<!-- marqdo-out
|
||||
|
||||
@@ -7,7 +7,7 @@ description: AI禁止更改
|
||||
|
||||
测试循环语句语句
|
||||
|
||||
*`n`=0*
|
||||
**`n`=0**
|
||||
|
||||
- `n` < 42
|
||||
`n`=`n`+1
|
||||
|
||||
Reference in new issue
Block a user