pub struct Overlay(pub Weak<Runtime>);Expand description
Exposes the runtime’s registry through cpa_core::registry::lookup_model.
Tuple Fields§
§0: Weak<Runtime>Trait Implementations§
Source§impl Overlay for Overlay
impl Overlay for Overlay
Source§fn lookup(&self, id: &str, provider: Option<&str>) -> Option<ModelInfo>
fn lookup(&self, id: &str, provider: Option<&str>) -> Option<ModelInfo>
A registered model by public ID, preferring
provider’s registration.Source§fn for_credential(&self, credential_id: &str, model: &str) -> Option<ModelInfo>
fn for_credential(&self, credential_id: &str, model: &str) -> Option<ModelInfo>
The model one credential registered under
model (config model entries carry
display names, context limits, thinking and is_compat).Source§fn available_by_provider(&self, provider: &str) -> Vec<ModelInfo>
fn available_by_provider(&self, provider: &str) -> Vec<ModelInfo>
Go
GetAvailableModelsByProvider: the models provider’s credentials currently
serve (translators read Antigravity’s supports_web_search from them). Defaults
to none.Auto Trait Implementations§
impl !RefUnwindSafe for Overlay
impl !UnwindSafe for Overlay
impl Forget for Overlay
impl Freeze for Overlay
impl Move for Overlay
impl Send for Overlay
impl Sync for Overlay
impl Unpin for Overlay
impl UnsafeUnpin for Overlay
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more