ReadonlydirFolder of the cache files.
Private ReadonlyfetchPrivate ReadonlynowPrivate ReadonlyttlPrivate ReadonlytimeoutStaticnextA catalog next to ai.json: <.polyman folder>/agent/models, so a
KeyStore with another home also gets its own cache.
Whether the provider has a live model list.
The cache file of a provider.
The model list of a provider: the cache when it is fresh, else the live
list (saved to the cache), else the old cache. Returns undefined when
the provider has no list or nothing works. It never throws.
What the list says about one model. It never throws.
PrivateisPrivatesignalThe caller's signal plus the time limit.
PrivatereadReads a cache. A missing, broken or foreign cache gives undefined.
PrivatewriteWrites a cache: temp file, then rename. Errors are ignored.
Live model lists, cached on disk.