Add HITL Approval¶
Human-in-the-loop is how Ravi pauses or gates risky actions.
When to use it¶
- irreversible actions
- side effects in external systems
- approvals before sending emails, deleting data, or calling critical tools
Runtime behavior¶
- the agent proposes a tool call
- the runtime inspects tool risk and HITL mode
- an approval request event is streamed to the frontend
- the workflow waits, continues, or auto-approves depending on mode
Frontend path¶
The UI renders ToolApprovalCard or HumanInputCard from SSE events and posts the result back through the response route.
Backend path¶
The durable runtime can suspend on a promise and resume after the user responds.
Read Tools And HITL and Events for the exact flow.