Skip to main content

Module provider_env

Module provider_env 

Source
Expand description

Pure resolution of a repo’s caliband environment overlay.

Combines the prosperod-level default env, a repo’s curated provider fields, and its raw env map into one overlay applied to the caliband process.

Functions§

resolve_env
Resolve the environment overlay for a repo’s caliband daemon.
validate_provider_config
Statically validate a repo’s provider config for internal coherence, independent of the runtime environment — so settings that would be silently dropped at spawn/poll time are rejected at config-set time with an actionable message instead.
validate_provider_env
Check that a resolved env satisfies the selected provider’s API-key requirement, returning an actionable message when it does not.