pub struct LlmRegistry { /* private fields */ }Expand description
Registry for LLM providers (string-keyed).
Implementations§
Source§impl LlmRegistry
impl LlmRegistry
Sourcepub fn register(&mut self, name: String, factory: Arc<dyn LlmClientFactory>)
pub fn register(&mut self, name: String, factory: Arc<dyn LlmClientFactory>)
Register an LLM provider factory.
Sourcepub fn get(&self, name: &str) -> Option<&Arc<dyn LlmClientFactory>>
pub fn get(&self, name: &str) -> Option<&Arc<dyn LlmClientFactory>>
Look up a provider factory by name.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LlmRegistry
impl !UnwindSafe for LlmRegistry
impl Forget for LlmRegistry
impl Freeze for LlmRegistry
impl Move for LlmRegistry
impl Send for LlmRegistry
impl Sync for LlmRegistry
impl Unpin for LlmRegistry
impl UnsafeUnpin for LlmRegistry
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