GuardrailChain
Defined in the guardrails module.Rust AI Agent SDK Chain of guardrails to run in sequence.
Fields
| Name | Type | Description |
|---|---|---|
guardrails | Vec<Box<dyn Guardrail>> | - |
config | GuardrailConfig | - |
Methods
new
add
| Name | Type |
|---|---|
guardrail | impl Guardrail + 'static |
config
| Name | Type |
|---|---|
config | GuardrailConfig |
validate
| Name | Type |
|---|---|
output | &str |
len
is_empty
Source
View on GitHub
praisonai/src/guardrails/mod.rs at line 479
