Skip to main content

Module init

Module init 

Source
Expand description

Provider initialization — auto-registers all built-in + config-based providers.

Called once at startup. Respects the [providers] config section:

  • providers.enabled = false → skip all registration
  • providers.github.enabled = false → skip GitHub
  • providers.gitlab.enabled = false → skip GitLab

After built-in providers, scans well-known directories for user-defined TOML/JSON provider configs and registers them automatically.

Functions§

init_builtin_providers
Register all built-in providers with the global registry. Respects [providers] config for enabling/disabling individual providers. Safe to call multiple times (idempotent — overwrites existing entries).
init_with_project_root
Register all providers, including config-based ones scoped to project_root.