> ## 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.

# guardrail Result From Tuple • TypeScript AI Agent SDK

> guardrailResultFromTuple: API reference for guardrailResultFromTuple

# guardrailResultFromTuple

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**guardrails**](../modules/guardrails) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def guardrailResultFromTuple(tuple: [boolean, string | null]) -> GuardrailValidationResult
```

### Returns

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/guardrails/index.ts#L54">
  `src/guardrails/index.ts` at line 54
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="JS Guardrails" icon="shield" href="/docs/js/guardrails" />

  <Card title="JS Guardrails CLI" icon="terminal" href="/docs/js/guardrails-cli" />

  <Card title="JS LLM Guardrail" icon="shield-halved" href="/docs/js/llm-guardrail" />

  <Card title="JS AI SDK" icon="brain" href="/docs/js/ai-sdk" />

  <Card title="JS AI SDK CLI" icon="terminal" href="/docs/js/ai-sdk-cli" />
</CardGroup>
