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

# Model Requests Allowed • AI Agent SDK

> model_requests_allowed: Return whether real model requests are currently permitted.

# model\_requests\_allowed

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

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

Return whether real model requests are currently permitted.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def model_requests_allowed() -> bool
```

### Returns

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/model_harness/guard.py#L133">
  `praisonaiagents/model_harness/guard.py` at line 133
</Card>
