Updated
On this page
build_transport_registry() turns provider_configs dicts into a name-keyed registry of Transport instances, resolving each entry's 'type' field against the anthropic/google/openai provider classes.
#services.src.orxtra.services._providers
#services.src.orxtra.services._providers
#build_transport_registry
python
def build_transport_registry(provider_configs: dict[str, dict[str, str]]) -> dict[str, Transport]Build a transport registry from provider configuration.
provider_configs format::
{ "anthropic": {"api_key": "sk-...", "type": "anthropic"}, "openai": {"api_key": "sk-...", "type": "openai"}, }
The type field selects the provider class (anthropic/openai). All other fields are passed as keyword arguments to the provider constructor. The registry is keyed by the config key (e.g. "anthropic").