Skip to main content

LLMGuardrail

Defined in the extras module.
Rust AI Agent SDK LLM-based guardrail for content validation

Fields

Methods

new

Create a new LLM guardrail Parameters:

with_prompt

Set the prompt template Parameters:

with_model

Set the model Parameters:

block_on_failure

Set whether to block on failure Parameters:

Source

View on GitHub

praisonai/src/parity/extras.rs at line 260

Rust Guardrails

Rust Approval

Rust Security

Rust LLM

Rust Providers