FileTracker
Defined in the indexing module.AI Agent Track file hashes and modification times for incremental indexing. Persists state to a JSON file for cross-session tracking.
Constructor
Optional[str]
No description available.
Methods
get_file_info()
Get file information (hash, mtime, size).
mark_indexed()
Mark file as indexed.
get_memory_ids()
Return the memory IDs previously stored for a file (empty if none).
has_changed()
Check if file has changed since last indexing.
save()
Save state to file.
load()
Load state from file.
clear()
Clear all tracked files.
Source
View on GitHub
praisonaiagents/knowledge/indexing.py at line 326
