import { type ModelKind } from "../stdlib/localModels.js"; import { type Backend } from "../stdlib/modelBackend.js"; /** One model downloaded to this machine. * * name the name `serve` and the call functions take * aliases every alias in `agency.json` that points at this model * kind what the model is, when its record, the catalog, or its * files say * family the class named in the model's `model_index.json`, such as * "ZImagePipeline", or the first entry of `architectures` in * its `config.json`, such as "Florence2ForConditionalGeneration" * directory the folder holding the model's files. For a Hugging Face * cache entry, the snapshot folder * complete false for a download that was interrupted * revision the commit the model was downloaded from, when known */ export type LocalModel = { name: string; aliases: LocalModelAlias[]; kind: ModelKind | null; family: string | null; backend: Backend; directory: string; sizeBytes: number; complete: boolean; revision: string | null; }; export type LocalModelAlias = { name: string; description: string; }; /** Every model downloaded to this machine. `agency local list` prints * these and also the catalog's models that are not downloaded, which this * leaves out. * * Some entries are listed but cannot be served: a GGUF file (the backend * `llama-cpp`), a ControlNet (the kind `controlnet`), and a download that * is not complete. `serve` and the call functions take the `name` of * every other entry. */ export declare function listModels(): LocalModel[];