From 3613ed7c4eb12225f129e59caabe323bc0be5310 Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 09:36:26 +0800 Subject: [PATCH] fix(ai): declare function parameters in Marqdo prose syntax --- ext/ai/flow.mq.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ext/ai/flow.mq.md b/ext/ai/flow.mq.md index 972f722..3741f8c 100644 --- a/ext/ai/flow.mq.md +++ b/ext/ai/flow.mq.md @@ -24,6 +24,8 @@ Only the requested function and its inputs need to be in the model prompt. |---|---|---| | result | map | {ok,value,status} or {ok:false,error} | +Use `reply`, `options` as the inputs for this operation. + Parsing accepts one exact name, a labeled name, a fenced name or a 1-based index. Ambiguous prose fails closed. Parsing never runs a tool or SKILL. @@ -48,6 +50,8 @@ Return *[Parse and verify the choice](agent_choice_parse(reply=`reply`, options= |---|---|---| | result | map | Verified choice result, or explicit failure | +Use `input`, `options`, `model`=None, `repair`=True as the inputs for this operation. + Only ask for the option name. A failed first parse can receive one short format correction; never silently select the nearest-looking option. @@ -77,6 +81,8 @@ We retain **ok = [Read validation status](json.get(value=`parsed`, key="ok"))**. |---|---|---| | result | list | Ordered child outcomes, including failures | +Use `tasks`, `limit`=2, `timeout_ms`=30000 as the inputs for this operation. + Reuse the built-in subtask scheduler. Each child document returns via its `# main`, and successful siblings remain visible if another child fails.