Check Module Available • AI Agents Framework

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

check_module_available

Function

</div>

This function is defined in the profiler module.

Check if a module is available without importing it.

Uses importlib.util.find_spec which is fast.

Signature

python
def check_module_available(module_name: str) -> bool

Parameters

ParamField str

No description available.

Returns

ResponseField bool

The result of the operation.

Uses

  • find_spec

Source

View on GitHub

praisonai/profiler.py at line 1307