2.0 KiB
markup, title, import
| markup | title | import | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| occlusion | AI native flow offline smoke |
|
main
This fixture tests the real Marqdo interface without a model provider. It refuses an invalid choice and retrieves only the designated function rather than guessing another SKILL or importing the full document.
opts = > json.parse text=["chat","office"]
pick = > flow.parse_choice reply="选择:office" options=opts
value = > json.get value=pick key="value"
value== "office" _ = 1-
debug_pick = > json.stringify value=pick
print text=
debug_picksys.exit code=11
structured = > flow.parse_choice reply="{"choice":"chat"}" options=opts
structure_value = > json.get value=structured key="value"
structure_value== "chat" _ = 1-
sys.exit code=16
invalid = > flow.parse_choice reply="chat 或 office" options=opts
not_ok = > json.get value=invalid key="ok"
not_ok
sys.exit code=12
_ = 1
ctx = > context.scope scope="function" class="main" function="probe" max_chars=200
ok = > json.get value=ctx key="ok"
ok_ = 1-
sys.exit code=13
packed = > context.compose user="Test the route" class="main" function="probe" budget_tokens=2048
pack_schema = > json.get value=packed key="schema"
pack_schema== "ContextPackV2" _ = 1-
sys.exit code=15
gate = > flow.input id="ai_native_flow_ci_gate" question="Continue?" options=opts source_revision="fixture-v1" freeform=False
answered = > flow.reply id="ai_native_flow_ci_gate" reply="office" source_revision="fixture-v1"
answer = > json.get value=answered key="value"
answer== "office" _ = 1-
sys.exit code=14
Return "ai-flow-native-ok".
probe
This private helper's narrative should be extracted by the scoped selector without including the root SKILL or neighboring function definitions.
Return "probe".