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
| One-off prompt inside a workflow |`call.text(prompt)` for a string, `call.json(prompt, schema)` for structured output |
64
64
| Reusable workflow step | Define an `agent({ input, output })` and `call(worker, input, { label, phase })`|
65
65
| Phase or log from an agent program | Import `phase` / `log` from `rig` and call them at top level; the launcher runs every program inside a workflow |
66
+
| Ambient `call` outside `body`| Import `call` from `"rig/globals"`; it routes through the active workflow context automatically. Do not import from `"rig/globals"` unless you need it — this avoids polluting non-workflow code. |
0 commit comments