From 3ce59a4da8f6e72d5a91daa44cad8a62d935d39a Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 09:57:47 +0800 Subject: [PATCH] test(ai): verify JSON-formatted small-model option parsing from Marqdo --- tests/ext/ai-native-flow.mq.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/ext/ai-native-flow.mq.md b/tests/ext/ai-native-flow.mq.md index cce2a01..c8fa5aa 100644 --- a/tests/ext/ai-native-flow.mq.md +++ b/tests/ext/ai-native-flow.mq.md @@ -22,6 +22,13 @@ rather than guessing another SKILL or importing the full document. 2. * > sys.exit code=11 +**structured = > flow.parse_choice reply="{\"choice\":\"chat\"}" options=`opts`** +**structure_value = > json.get value=`structured` key="value"** +1. `structure_value` == "chat" + **_ = 1** +2. * + > sys.exit code=16 + **invalid = > flow.parse_choice reply="chat 或 office" options=`opts`** **not_ok = > json.get value=`invalid` key="ok"** 1. `not_ok`