pub struct GuardrailExecutor;Expand description
Executor for running guardrails in parallel
Implementations§
Source§impl GuardrailExecutor
impl GuardrailExecutor
Sourcepub async fn run(
guardrails: &GuardrailSet,
content: &Content,
) -> Result<ExecutionResult>
pub async fn run( guardrails: &GuardrailSet, content: &Content, ) -> Result<ExecutionResult>
Run all guardrails in parallel, with early exit on critical failures
Auto Trait Implementations§
impl Freeze for GuardrailExecutor
impl RefUnwindSafe for GuardrailExecutor
impl Send for GuardrailExecutor
impl Sync for GuardrailExecutor
impl Unpin for GuardrailExecutor
impl UnwindSafe for GuardrailExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more