Skip to main content

Module llm_factory

Module llm_factory 

Source
Expand description

LLM client factory functions for CLI commands.

Provides builders for creating LLM clients from configuration.

Functionsยง

build_anthropic_client
Builds an Anthropic client from configuration.
build_hook_llm_provider
Builds an LLM provider for hooks from configuration.
build_http_config
Builds HTTP configuration from LLM config with environment overrides.
build_llm_provider
Builds an LLM provider from configuration.
build_llm_provider_for_entity_extraction
Builds an LLM provider for entity extraction with a longer timeout.
build_lmstudio_client
Builds an LM Studio client from configuration.
build_ollama_client
Builds an Ollama client from configuration.
build_openai_client
Builds an OpenAI client from configuration.
build_resilience_config
Builds resilience configuration from LLM config with environment overrides.