library · inferred from evidence
PIIMiddleware
A prebuilt middleware for redacting sensitive data in agent inputs.
- 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