Skip to main content

from_tuple

Method
This is a method of the GuardrailResult class in the guardrails module.
Create from a tuple (success, result_or_error)

Signature

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

Parameters

success
bool
required
No description available.
data
impl Into<String>
required
No description available.

Returns

Returns
Self
The result of the operation.