pub fn model_provider_runtime_options_from_model_provider_entry(
config: &Config,
entry: Option<&ModelProviderConfig>,
) -> ModelProviderRuntimeOptionsExpand description
Build ModelProviderRuntimeOptions from a specific ModelProviderConfig
entry plus the global config’s process-wide settings (zeroclaw_dir,
secrets, runtime). Splits out the per-entry resolution so callers with
agent context can pass in the alias-resolved entry instead of hitting
first_model_provider().
Pass None when no model_provider entry is resolvable (e.g. tests or fresh
config with no models configured); falls back to safe defaults.