select_provider

Function select_provider 

Source
pub fn select_provider(
    config: &AppConfig,
    _ctx: &AgentContext,
) -> Box<dyn LlmProvider>
Expand description

Select a provider based on config and context.

If the selected provider is not configured, returns UnconfiguredProvider which will return an error when called. This prevents silent failures.