Files search
Search TODOforAI cloud files by meaning and keywords: projects' memory/context/skills and your own uploads. One hit per file with its best passage; read it with tfa-cat
Responses
Successful response
hitsobject[] · requiredstatusobject · requiredWhere the caller's file index stands.
scanning: listing what changed;indexing: embeddingdoneoftotalchanged files.
Files indexStatus
Where your cloud file index stands: idle, scanning or indexing n of m changed files. Starts a run when the index is missing or old.
Responses
Successful response
staterequireddonenumber · requiredtotalnumber · requiredfilesnumber · requiredFiles in the index the caller can search.
indexedAtnumberEpoch ms of the last finished sync.
errorstringerror: why it stopped;idle: what the last sync could not index (retried next time).currentstringindexing: the uri being read and embedded now.
Files reindex
Brings your cloud file index up to date in the background; poll GET /files/index for progress.
Responses
Successful response
staterequireddonenumber · requiredtotalnumber · requiredfilesnumber · requiredFiles in the index the caller can search.
indexedAtnumberEpoch ms of the last finished sync.
errorstringerror: why it stopped;idle: what the last sync could not index (retried next time).currentstringindexing: the uri being read and embedded now.
Files indexStates
Index state of each file of a project you can search: text (content searchable), name (by name and description only), skipped (too big) or failed (retried next sync), by file id.
Responses
Successful response
uristring · requiredHow search hits name it (
tfa-cat <uri>): a project file's path, else its id address.staterequired
chunksnumbererrorstring