Part of the ContextMemory docs. Back to README.
Human-in-the-loop — how it works
- The model proposes a tool that matches
requireConfirmationFor(e.g. a command containingdelete). - Execution stops; the API returns a confirmation prompt and header
X-Context-Memory-Agentic-Awaiting-Confirmation. - The user replies with confirmation (e.g.
confirm,approve, or[CONFIRM:abc123]). - The tool runs; the loop continues until a validated final answer.
- If the iteration limit is reached,
humanReviewOnMaxIterationsrequests approval of the partial answer.
Everything is recorded in the session log.md for audit.