max • Rust AI Agent SDK

max: Set maximum length

max

Method

</div>

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

Set maximum length

Signature

python
def max(mut self, length: usize) -> Self

Parameters

ParamField usize

No description available.

Returns

ResponseField Self

The result of the operation.