-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration Reference
Frody edited this page Sep 4, 2026
·
1 revision
This guide details all configuration options for both the programmatic builder and Spring Boot environment.
agentguard:
# Master toggle for AgentGuard auto-configuration
enabled: true
# Automatically redact emails, credit cards, phones, and secrets
pii-masking: true
# Analyze incoming prompts for prompt injection signatures
injection-detection: true
# Block and throw SecurityException when an injection attack is detected
block-on-injection: true
# Maximum estimated input tokens per prompt before throwing BudgetLimitException
max-input-tokens: 4096
# Maximum autonomous agent tool recursion depth
max-tool-iterations: 10
# Maximum accumulated tokens per session
max-session-tokens: 50000When using AgentGuardSuite.builder() without Spring:
| Parameter | Type | Default |
|---|---|---|
piiMasking |
boolean |
true |
injectionDetection |
boolean |
true |
blockOnInjection |
boolean |
true |
maxInputTokens |
int |
4096 |
maxToolIterations |
int |
10 |
maxSessionTokens |
int |
50000 |
AgentGuard • Enterprise AI Security, PII Masking & Prompt Firewall • GitHub