Skip to main content
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
str | None
default:"None"
Provider name (‘anthropic’, ‘openai’, ‘google’, ‘ollama’) or None for auto-detection
Any
Additional arguments passed to the provider constructor
LLMProvider
An initialized LLMProvider instance
Raises
  • ProviderConfigError: If no provider is available or configured
Example

list_available_providers()

List all available and configured providers.
list[str]
List of provider names that are installed and configured

list_installed_providers()

List all installed providers (may not be configured).
list[str]
List of provider names that have their packages installed