From Tuple • Rust AI Agent SDK

from_tuple: Create from a tuple (success, result_or_error)

from_tuple

Method

</div>

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

Create from a tuple (success, result_or_error)

Signature

python
def from_tuple(success: bool, data: impl Into<String>) -> Self

Parameters

ParamField bool

No description available.

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.