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

# Export To File • AI Agents Framework

> export_to_file: API reference for ProfilerCompat.export_to_file

# export\_to\_file

Method

> This is a method of the [**ProfilerCompat**](https://praison.ai/docs/sdk/reference/praisonai/classes/ProfilerCompat.md) class in the [**profiler**](https://praison.ai/docs/sdk/reference/praisonai/modules/profiler.md) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def export_to_file(filepath: str, format: str) -> None
```

## Parameters

**filepath** `str` *required*

No description available.

**format** `str` (default: 'json')

No description available.

## Uses

* `export_to_file`
* `get_profiler`

## Used By

* [`ProfilerCompat.export_to_file`](../functions/ProfilerCompat-export_to_file)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/profiler.py#L965)
>
> `praisonai/profiler.py` at line 965


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.