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
def from_tuple(success: bool, data: impl Into<String>) -> SelfParameters
ParamField
boolNo description available.
ParamField
impl Into<String>No description available.
Returns
ResponseField
SelfThe result of the operation.