Expand description
Assembles a ProviderRegistry and individual provider instances.
build_registry: entry point for assembly; given aLoadedConfig, returns(ProviderRegistry, TurnConfig)for direct attachment toDefaultAgentCore::builder().registry(...).build_single_llm_provider: constructs a provider instance byProviderKind; callers that want to “swap out a provider” can call this function independently and assemble their ownProviderEntry.build_provider_entries: the list of entries forProviderRegistry::new— the default entry plus any additional entries the user configured under[providers.*].
Functions§
- build_
provider_ entries - For each valid
ProviderKindin the[providers]section, assemble aProviderEntry— the default provider is always included; other entries are only included if they declaredefault_modelormodels. - build_
registry - Assembles the provider registry and default turn config.
- build_
single_ llm_ provider - Instantiate a provider based on
ProviderKind.