{ "version": "3.15", "name": "Test05: Parallel Loop", "registry": { "params": [], "vars": ["$tasks([OBJECT])", "$outputs([STRING])"] }, "steps": [ { "id": "Set_Tasks", "target": "$tasks", "value": "[{\"lang\": \"Python\"}, {\"lang\": \"JavaScript\"}, {\"lang\": \"Go\"}, {\"lang\": \"Rust\"}]", "next": "Loop_GenCode" }, { "id": "Loop_GenCode", "mode": "parallel", "source": "=$tasks", "children": ["LLM_GenHello"], "next": "Stop_End" }, { "id": "LLM_GenHello", "in": { "messages": [ { "role": "user", "content": "=\"Write a hello world one-liner in \" + _item.lang + \". Only output the code, no explanation.\"" } ] }, "out": { "$outputs[_index]": "=_result" }, "next": "RETURN" }, { "id": "Stop_End" } ] }