marvin.settings

Settings for Marvin.

Classes

Settings

class Settings()

Settings for Marvin.

Settings can be set via environment variables with the prefix MARVIN_. For example, MARVIN_AGENT_MODEL=“openai:gpt-4o-mini”

Methods:

  • setup_logging
    def setup_logging(self) -> Self
    
    Finalize the settings.
  • validate_database_url
    def validate_database_url(cls, v: str | None, info: ValidationInfo) -> str
    
    Set and validate the database URL.
  • validate_home_path
    def validate_home_path(cls, v: Path) -> Path
    
    Ensure the home path exists.

Parent Module: marvin