The pattern
Complete example
What you’ll see
A session replay showing:- Orchestrator run with triage workflow step
- Handoff requested event with ticket metadata
- Child worker run with handoff completed
- Tool call for composing the reply
Step metadata
UsestepKey, stepName, and stepIndex on runs and workflow steps to keep the timeline ordered and readable:
| Field | Purpose |
|---|---|
stepKey | Stable identifier (orchestrator, response-worker) |
stepName | Human-readable label |
stepIndex | Sort order in session replay |
role | orchestrator, worker, or custom |
Recipe walkthrough
See Multi-agent handoff recipe for a line-by-line walkthrough of the full example script.Next steps
Declare capabilities
Declare what each agent in the pipeline may do.
Production release gate
Pipeline with risky CI/CD actions.
