179 questions
No questions match those filters.
Describe three concrete Human-in-the-Loop implementatio...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansThree patterns, and they differ in exactly where the pause sits relative to the risky action:
- Pre-execution approval — before a genuinely irreversible action (send, delete, pay), the agent pauses, presents the proposed action to a human approver, and only proceeds on an explicit go-ahead or cancels on a no.
- Output review — the agent produces something (a report, an email draft) and marks it pending review rather than delivering it; a human edits and approves before it’s published or sent.
- Interrupt-and-resume — the state-preserving version, where execution genuinely halts before a specific node, the full state is persisted, and resumption picks up from exactly that point once a decision arrives — rather than the application polling or re-running earlier steps.
The detail that’s easy to design around and expensive to skip is what happens when the human never responds. A pending approval needs an explicit timeout — say 24 hours — and a defined fallback for when it expires: auto-escalate to a different approver, auto-cancel the action, or auto-fail the task with a clear reason, rather than a task sitting in limbo indefinitely, consuming a slot in whatever queue or session store is tracking pending approvals.