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

# Check Module Available • AI Agents Framework

> check_module_available: Check if a module is available without importing it.

# check\_module\_available

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

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

Check if a module is available without importing it.

Uses importlib.util.find\_spec which is fast.

## Signature

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

## Parameters

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

### Returns

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

## Uses

* `find_spec`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/profiler.py#L1176">
  `praisonai/profiler.py` at line 1176
</Card>
