FoundationHazelJS
Human-in-the-loop (HITL)
Design that inserts human judgment into an otherwise automated agent or workflow path.
- Authors
- editorial-team
- Published
- Last reviewed
Direct answer
Design that inserts human judgment into an otherwise automated agent or workflow path.
Plain language
The agent pauses and asks a person before doing something important.
Technical explanation
HazelJS: PolicyEngine require_approval → durableSuspend persists SUSPENDED AgentRun → approveAndResume(executionId, { approved, approvedBy }); requires authenticated approvers.
Example
Require a team lead to approve a production rollback @Tool via approveAndResume before ToolExecutor runs it.