new • Rust AI Agent SDK

new: Create a new length guardrail

new

Method

</div>

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

Create a new length guardrail

Signature

python
def new() -> Self

Returns

ResponseField Self

The result of the operation.