pub enum ResolutionSource {
ExplicitOverride(Provider),
FoundationProfile {
profile_id: String,
provider: ProviderKind,
model_id: String,
mechanism: ExtractMechanism,
},
CompatEnv {
kind: ProviderKind,
model_id: String,
},
Local,
}Expand description
Where the resolved provider came from. Carries enough metadata for callers
(and tests) to prove the resolution ladder actually fired the step they
expect. Foundation-resolved profiles additionally surface the profile id
so Task 5 can plumb it into ExtractorConfig / ExtractorId provenance.
Variants§
ExplicitOverride(Provider)
Explicit OXIBRAIN_LLM_PROVIDER=… override.
FoundationProfile
A Foundation profile for the requested role, with the secret resolved
out-of-band. profile_id is the profile’s id field; model_id is
the profile’s model; provider and mechanism are derived from the
profile’s provider field and the host’s adapter catalogue.
CompatEnv
Existing compatibility environment variable. kind is Anthropic or
OpenAi; the model id is whatever *_MODEL / OXIBRAIN_MODEL
resolved to.
Local
Local GGUF — the standalone default (C2).
Trait Implementations§
Source§impl Clone for ResolutionSource
impl Clone for ResolutionSource
Source§fn clone(&self) -> ResolutionSource
fn clone(&self) -> ResolutionSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more