Human-in-the-Loop with request_info

A workflow suspends on a pending request keyed by request_id, then a resume run matches the human answer

Human-in-the-Loop with request_info A workflow suspends on a pending request keyed by request_id, then a resume run matches the human answer run(input) start workflow RequestInfoEvent workflow suspends; pending request keyed by request_id suspended + request_id provide answer resume(request_id, answer) match request_id continue -> result final result Suspend Resume App · caller · Sequence participant App caller Runner · drives run · Sequence participant Runner drives run Workflow · request_info executor · Sequence participant Workflow request_info executor Human · reviewer · Sequence participant Human reviewer Legend request return security async trace

Suspend

  • • request_info emits a pending request
  • • The run halts instead of blocking a thread
  • • Every pending request carries a request_id

Human Gate

  • • The human answers out of band
  • • No live connection is held open
  • • The answer references the request_id

Resume

  • • A fresh run replays with the answer
  • • The answer is matched to the same request_id
  • • Execution continues to the final result