Skip to content
22 / 23

Как делать Human-in-the-loop approval gates в агентах: action review, async approval, idempotent resume?

HITL approval gate — обязательная human review перед irreversible actions агента (refund, send, merge, transfer). Sync блокирует UI, async пишет request в DB и checkpoint'ит граф (LangGraph interrupt + Postgres saver), resume через webhook. Tiered: confidence > 0.9 — auto, 0.5-0.9 — notify + timeout, < 0.5 — block. Idempotency на resume обязательна, иначе double-execute при retry.

Как делать Human-in-the-loop approval gates в агентах: action review, async approval, idempotent resume? | JScriptiser