test03_parallel_children.json 961 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "version": "3.15",
  3. "name": "Test03: Parallel Children Fan-out",
  4. "registry": {
  5. "params": ["topic(STRING)"],
  6. "vars": ["$poem(STRING)", "$joke(STRING)", "$summary(STRING)"]
  7. },
  8. "steps": [
  9. {
  10. "id": "Set_Start",
  11. "target": "$summary",
  12. "value": "\"Starting parallel generation\"",
  13. "children": ["LLM_Poem", "LLM_Joke"],
  14. "next": "Set_Done"
  15. },
  16. {
  17. "id": "LLM_Poem",
  18. "in": { "messages": [{ "role": "user", "content": "=\"Write a short 2-line poem about: \" + topic" }] },
  19. "out": "$poem",
  20. "next": "RETURN"
  21. },
  22. {
  23. "id": "LLM_Joke",
  24. "in": { "messages": [{ "role": "user", "content": "=\"Tell a short one-liner joke about: \" + topic" }] },
  25. "out": "$joke",
  26. "next": "RETURN"
  27. },
  28. {
  29. "id": "Set_Done",
  30. "target": "$summary",
  31. "value": "=\"Poem: \" + $poem + \" | Joke: \" + $joke",
  32. "next": "Stop_End"
  33. },
  34. { "id": "Stop_End" }
  35. ]
  36. }