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

# save • AI Agent SDK

> save: Save state to file.

# save

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**FileTracker**](../classes/FileTracker) class in the [**indexing**](../modules/indexing) module.

Save state to file.

## Signature

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

## Uses

* `os.makedirs`
* `dirname`
* `json.dump`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/knowledge/indexing.py#L421">
  `praisonaiagents/knowledge/indexing.py` at line 421
</Card>
