Skip to main content

Module session

Module session 

Source
Expand description

Provider registry construction from the CLI’s Config.

Turning what the caller typed into a task lives in super::task.

Structs§

ProviderCreds
Decoupled provider credentials.

Functions§

build_provider_registry
Build a ProviderRegistry from decoupled ProviderCreds.
build_provider_registry_from_config
Convenience wrapper: build a ProviderRegistry straight from a Config.
build_provider_registry_from_config_with
build_provider_registry_from_config, with client construction injected.
provider_creds_from_config
Build the list of ProviderCreds a Config implies. ollama is always present (it needs no key); the API-key providers are included only when their key is configured, and claude-code only when explicitly enabled. This is the sole point that reads provider settings out of Config.