Reads, validates, and normalizes LLM/embedding provider configuration.
Provides a consistent interface for configuration that may come from JSON files, environment variables, or application env. Used by diagnostics tools to validate provider settings before probing.
This is complementary to Candil.Config — while Candil.Config stores
structured engine/model/provider definitions in ETS, Candil.ConfigManager
handles raw map-based config validation and normalization for ad-hoc
provider connections.
Summary
Types
Normalized provider config
Functions
Returns default config for a given provider type.
Returns the list of known embed providers.
Returns the list of known LLM providers.
Normalizes a config map: fills in missing keys with defaults for the given provider type.
Validates a provider configuration map.
Types
Functions
Returns default config for a given provider type.
@spec embed_providers() :: [String.t()]
Returns the list of known embed providers.
@spec llm_providers() :: [String.t()]
Returns the list of known LLM providers.
Normalizes a config map: fills in missing keys with defaults for the given provider type.
Validates a provider configuration map.
Returns :ok or {:error, list(String.t())} with all validation failures.