policy • Rust AI Agent SDK

policy: Add a policy

policy

Method

</div>

This is a method of the GuardrailConfig class in the config module.

Add a policy

Signature

python
def policy(mut self, policy: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.


Related Documentation