AxiomAi.LocalModels.Registry (AxiomAI v0.1.2)

View Source

Central registry for managing model configurations organized by categories.

Summary

Functions

Adds a new model configuration at runtime.

Gets all model configurations.

Gets a specific model configuration by key.

Lists all available model keys.

Lists models by category.

Removes a runtime model configuration.

Functions

add_model(model_key, category, config)

@spec add_model(String.t(), atom(), map()) :: :ok | {:error, term()}

Adds a new model configuration at runtime.

get_all_models()

@spec get_all_models() :: %{required(String.t()) => map()}

Gets all model configurations.

get_model(model_key)

@spec get_model(String.t()) :: {:ok, map()} | {:error, :not_found}

Gets a specific model configuration by key.

list_all_models()

@spec list_all_models() :: [String.t()]

Lists all available model keys.

list_models_by_category(category)

@spec list_models_by_category(atom()) :: [String.t()]

Lists models by category.

remove_model(model_key)

@spec remove_model(String.t()) :: :ok

Removes a runtime model configuration.