settings
Settings for Marvin.
marvin.settings
Settings for Marvin.
Classes
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
Finalize the settings.
-
validate_database_url
Set and validate the database URL.
Priority:
- MARVIN_DATABASE_URL (from environment or .env file via os.getenv).
- Default SQLite path if MARVIN_DATABASE_URL is not set. This validator bypasses Pydantic’s implicit fallback to an unprefixed DATABASE_URL from .env.
-
validate_home_path
Ensure the home path exists.
Parent Module: marvin