pub fn create_builtin_provider(name: &str) -> Option<Box<dyn Provider>>Expand description
Stable since 0.63.0
Create a built-in provider by name.
This is the single source of truth for provider instantiation. It reads
the BuiltinProvider metadata and creates the appropriate provider struct
with the correct base URL, API key, and extra headers.
The returned transport carries no identity — provider identity (the
canonical catalog id) lives in the registry key / Model.provider field,
not on the transport. This completes the omp three-way split (transport /
identity / metadata) — see
docs/superpowers/specs/2026-07-27-omp-realignment-design.md (P0.3).
Returns None if the name is not a known built-in provider.