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
def add(mut self, guardrail: impl Guardrail + 'static) -> SelfParameters
ParamField
impl Guardrail + 'staticNo description available.
Returns
ResponseField
SelfThe result of the operation.