Has Changed • AI Agent SDK

has_changed: Check if file has changed since last indexing.

has_changed

Method

</div>

This is a method of the FileTracker class in the indexing module.

Check if file has changed since last indexing.

Signature

python
def has_changed(filepath: str) -> bool

Parameters

ParamField str

Path to file

Returns

ResponseField bool

True if file is new or changed

Uses

  • get_file_info

Source

View on GitHub

praisonaiagents/knowledge/indexing.py at line 387