add • Rust AI Agent SDK

add: Add a guardrail to the chain

add

Method

</div>

This is a method of the GuardrailChain class in the guardrails module.

Add a guardrail to the chain

Signature

python
def add(mut self, guardrail: impl Guardrail + 'static) -> Self

Parameters

ParamField impl Guardrail + 'static

No description available.

Returns

ResponseField Self

The result of the operation.