library · inferred from evidence
HumanInTheLoopMiddleware
A prebuilt middleware for gating risky tool calls with human approval.
- Compose a middleware stack: PII redaction, summarization, human approval
The three prebuilt middlewares that cover most production agents: PIIMiddleware to keep sensitive data from the model, SummarizationMiddleware to bound history, HumanInTheLoopMiddleware to gate risky tool calls. Compose them in one list. No