You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|Deterministic TypeScript fan-out |`workflow({ meta, input?, body })` + `export default`; use `call`, `pipeline`, `parallel`, `until` inside `body`|
56
56
| Structured-output retries |`maxTurns` on the agent plus `addons: repair()`|
57
57
| Retry with final-turn warning |`addons: [steering(), repair()]` in that order |
58
58
@@ -68,7 +68,7 @@ Prompt intents are declarative instructions, not in-process operations. Prefer f
68
68
69
69
## Runnable output
70
70
71
-
For runnable markdown, emit exactly one fenced `rig` block with one default-exported root and no required external input. Never call the root inside the fence.
71
+
For runnable markdown, emit exactly one fenced `rig` block with one default-exported root (`agent` or `workflow`) and no required external input. Never call the root inside the fence. Add a `// Agent role: ...` comment above each `agent()` and a `// Workflow role: ...` comment above each `workflow()`.
- Omit `input` for a no-input program (inline mode) or add `input: s.object({ ... })` for file-mode programs that read stdin JSON.
76
+
- Use `agent()` with `agents:` when an LLM should improvise the coordination order. Use `workflow()` when TypeScript owns the orchestration (fan-out, branching, convergence).
0 commit comments