from typing import TypedDict class OpenAIConfig(TypedDict): """ The OpenAI section of the configuration file. """ api_key: str model: str temperature: float max_tokens: int top_p: float frequency_penalty: float presence_penalty: float class Config(TypedDict): """ The configuration file structure. """ system: str db: str openai: OpenAIConfig