pub struct FactorySelectorHandle { /* private fields */ }Expand description
Real handle over AgentFactory::build_llm_client_for_identity
(meerkat 0.7.9 factory.rs): realm auth binding + model catalog
resolution, the same seam session model hot-swap uses. Clients are
cached per (realm, model); SelectorHandle::invalidate clears the
cache so an auth failure re-enters resolution.
Implementations§
Source§impl FactorySelectorHandle
impl FactorySelectorHandle
pub fn new( store_path: impl Into<PathBuf>, config: Config, realm: impl Into<String>, profile: &SelectorProfile, ) -> Self
Sourcepub fn for_model(
store_path: impl Into<PathBuf>,
config: Config,
realm: impl Into<String>,
model: &str,
provider: Provider,
) -> Self
pub fn for_model( store_path: impl Into<PathBuf>, config: Config, realm: impl Into<String>, model: &str, provider: Provider, ) -> Self
Same seam, keyed by raw model/provider — the Distiller (§8.4) and any future off-turn stage obtain their clients through this exact factory path rather than growing a parallel one (§8.1 dogma rule 7).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FactorySelectorHandle
impl !RefUnwindSafe for FactorySelectorHandle
impl !UnwindSafe for FactorySelectorHandle
impl Send for FactorySelectorHandle
impl Sync for FactorySelectorHandle
impl Unpin for FactorySelectorHandle
impl UnsafeUnpin for FactorySelectorHandle
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<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