Skip to main content

Module providers

Module providers 

Source
Expand description

Assembles a ProviderRegistry and individual provider instances.

  • build_registry: entry point for assembly; given a LoadedConfig, returns (ProviderRegistry, TurnConfig) for direct attachment to DefaultAgentCore::builder().registry(...).
  • build_single_llm_provider: constructs a provider instance by ProviderKind; callers that want to “swap out a provider” can call this function independently and assemble their own ProviderEntry.
  • build_provider_entries: the list of entries for ProviderRegistry::new — the default entry plus any additional entries the user configured under [providers.*].

Functions§

build_provider_entries
For each valid ProviderKind in the [providers] section, assemble a ProviderEntry — the default provider is always included; other entries are only included if they declare default_model or models.
build_registry
Assembles the provider registry and default turn config.
build_single_llm_provider
Instantiate a provider based on ProviderKind.