PatternGuardrail
Defined in the guardrails module.Rust AI Agent SDK Regex pattern guardrail.
Fields
| Name | Type | Description |
|---|---|---|
must_match | Option<String> | Pattern to match (must match for success) |
must_not_match | Option<String> | Pattern to not match (must not match for success) |
Methods
new
must_match
| Name | Type |
|---|---|
pattern | impl Into<String> |
must_not_match
| Name | Type |
|---|---|
pattern | impl Into<String> |
Source
View on GitHub
praisonai/src/guardrails/mod.rs at line 404
