Skip to content

Settings

Here's a list of settings available in Grit and their default values. All settings are optional and can be added to app/settings.py. If you don't declare a SettingsTypedDict object, it will use the default value.

CoreSettingsTypedDict

Core application settings that configure fundamental application-level properties.

Setting Type Required Description
SUBDOMAIN_NAME str No The subdomain name for the application

Example

# app/settings.py
CORE_SETTINGS: CoreSettingsTypedDict = {
    '...': '...'
}

AgentSettingsTypedDict

Configuration for agent-related views and URLs.

Setting Type Required Description
THREADS_RUNS_AVIEW str No URL pattern for the threads runs async view
THREADS_LIST_VIEW str No URL pattern for the threads list view
MODELS_LIST_VIEW str No URL pattern for the models list view

Example

# app/settings.py
AGENT_SETTINGS: AgentSettingsTypedDict = {
    '...': '...'
}

AuthSettingsTypedDict

See Authentication

AppMetadataSettingsTypedDict

See Permissions