> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# From Tuple • Rust AI Agent SDK

> from_tuple: Create from a tuple (success, result_or_error)

# from\_tuple

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**GuardrailResult**](../classes/GuardrailResult) class in the [**guardrails**](../modules/guardrails) module.

Create from a tuple (success, result\_or\_error)

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def from_tuple(success: bool, data: impl Into<String>) -> Self
```

## Parameters

<ParamField query="success" type="bool" required={true}>
  No description available.
</ParamField>

<ParamField query="data" type="impl Into<String>" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Self">
  The result of the operation.
</ResponseField>
