Skip to main content
Model configuration loader. Reads model definition YAML files from the configs/ directory and builds ModelSpec instances. This is the single source of truth for all model specifications.

EndpointPaths

Parsed endpoint routes for a model. Each field corresponds to an optional endpoint type declared in the model’s YAML config under endpoints:.

ModelConfig

A fully parsed model configuration. Combines the ModelSpec with routing metadata that is not part of the spec itself.

endpoint_path

Primary endpoint path (backward compatibility).

genes_endpoint_path

Genes/metadata endpoint path (backward compatibility).

load_model_config

Loads a single model config YAML file.
Path
required
Path to the YAML file.
ModelConfig
A ModelConfig with the parsed spec and routing.

load_all_model_configs

Discovers and loads all model configs from a directory. Scans for *.yaml files and returns a dict keyed by model_name.
Path | None
Directory to scan. Defaults to the package-bundled configs/ directory.
Dict[str, ModelConfig]
Mapping of model name to ModelConfig.