{
  "version": "3.15",
  "name": "Test03: Parallel Children Fan-out",
  "registry": {
    "params": ["topic(STRING)"],
    "vars": ["$poem(STRING)", "$joke(STRING)", "$summary(STRING)"]
  },
  "steps": [
    {
      "id": "Set_Start",
      "target": "$summary",
      "value": "\"Starting parallel generation\"",
      "children": ["LLM_Poem", "LLM_Joke"],
      "next": "Set_Done"
    },
    {
      "id": "LLM_Poem",
      "in": { "messages": [{ "role": "user", "content": "=\"Write a short 2-line poem about: \" + topic" }] },
      "out": "$poem",
      "next": "RETURN"
    },
    {
      "id": "LLM_Joke",
      "in": { "messages": [{ "role": "user", "content": "=\"Tell a short one-liner joke about: \" + topic" }] },
      "out": "$joke",
      "next": "RETURN"
    },
    {
      "id": "Set_Done",
      "target": "$summary",
      "value": "=\"Poem: \" + $poem + \" | Joke: \" + $joke",
      "next": "Stop_End"
    },
    { "id": "Stop_End" }
  ]
}
