LLM Module

Shared LLM model registry for agents.

Configures multiple model backends (OpenAI, OpenRouter, Ollama-compatible) and exposes typed model objects for use with the Agents SDK.

Environment variables: - OPENAI_API_KEY - OPENROUTER_API_KEY

ivar AGENT_MODEL:

Default chat model for text agents.

ivar MULTIMODAL_MODEL:

Default model for multimodal agents.

shared.llm.get_agent_model()[source]

Get the default agent model with lazy initialization.

Return type:

OpenAIChatCompletionsModel

shared.llm.get_multimodal_model()[source]

Get the default multimodal model with lazy initialization.

Return type:

OpenAIChatCompletionsModel