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`