Skip to main content

GuardrailChain

Defined in the guardrails module.
Rust AI Agent SDK Chain of guardrails to run in sequence.

Fields

Methods

new

Create a new guardrail chain

add

Add a guardrail to the chain Parameters:

config

Set config Parameters:

validate

Validate output through all guardrails Parameters:

len

Get guardrail count

is_empty

Check if empty

Source

View on GitHub

praisonai/src/guardrails/mod.rs at line 479

Rust Guardrails

Rust Approval

Rust Security