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

# Has Changed • AI Agent SDK

> has_changed: Check if file has changed since last indexing.

# has\_changed

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

Check if file has changed since last indexing.

## Signature

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

## Parameters

<ParamField query="filepath" type="str" required={true}>
  Path to file
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  True if file is new or changed
</ResponseField>

## Uses

* `get_file_info`

## Source

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