Skip to main content

Module session

Module session 

Source
Expand description

Session setup: task resolution, editor launching, engine setup.

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.
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.
read_region_value
Resolve one CLI region-flag value: @path reads (and trims) that file’s contents; anything else is literal text. Unlike --task, the @ is an explicit file marker, so a missing @file is an error (the user meant a file), not a literal fallback.
resolve_task
Resolve the task string from a CLI argument.