Scenario
An urgent enterprise support ticket arrives. The orchestrator triages it, requests a handoff to a response worker, and the worker composes a reply.The timeline
- Session —
kind: "pipeline"groups the full escalation - Orchestrator run —
stepKey: "orchestrator",stepIndex: 0 - Triage step —
withWorkflowStepfor ticket triage - Handoff requested —
trackHandoffRequestedwith ticket metadata - Child worker run —
withChildRunwithrole: "worker" - Handoff completed —
trackHandoffCompleted - Compose reply —
withToolforsupport.compose_reply
Key code blocks
Handoff requested
Child worker run
What you’ll see
A session replay showing orchestrator triage, handoff requested/completed events, and the worker’s compose-reply tool call — all in chronological order.Full example
See Multi-agent pipelines for the complete code listing.Next steps
Trace runs and sessions
Run and session fundamentals.
Custom telemetry
Handoff and workflow events.
