iso8583sim.llm.providers
This module provides a factory function to create LLM providers
and auto-detect available providers based on installed packages
and configured API keys.
Functions
get_provider()
Get an LLM provider instance.
If name is provided, creates that specific provider.
If name is None, auto-detects the first available provider.
Parameters
Provider name (‘anthropic’, ‘openai’, ‘google’, ‘ollama’)
or None for auto-detection
Additional arguments passed to the provider constructor
An initialized LLMProvider instance
Raises
ProviderConfigError: If no provider is available or configured
Example
list_available_providers()
List all available and configured providers.
List of provider names that are installed and configured
list_installed_providers()
List all installed providers (may not be configured).
List of provider names that have their packages installed