Human in the Loop

Pause a handoff for human review before the next agent picks it up.

How it works

Set require_human: true when passing a baton. The baton will be created in a pending_review status and won't be available for catch until a human approves it from the dashboard.

const handoff = await baton.pass({
  task: "Send this email to the client",
  output: { email: "Dear client..." },
  require_human: true
})

When to use it

  • High-stakes actions like sending emails or making payments
  • Quality checks between pipeline stages
  • Compliance workflows that require human sign-off
  • Any handoff where you want a human to verify before proceeding