Skip to main content

AsyncGuardrail

Defined in the guardrails module.
Rust AI Agent SDK Trait for asynchronous guardrail validation.

Methods

validate

async fn validate(&self, output: &str) -> GuardrailResult
Validate the output asynchronously Parameters:
NameType
output&str

name

fn name(&self) -> &str
Get guardrail name

Source

View on GitHub

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