pub struct ModelRegistration {
pub model_id: &'static str,
pub factory: fn() -> Arc<dyn LlmModelAdapter>,
}Expand description
Registration entry for auto-discovered model adapters.
Fields§
§model_id: &'static strCanonical model identifier (e.g. "llama3").
factory: fn() -> Arc<dyn LlmModelAdapter>Factory function that constructs the model adapter.
Implementations§
Trait Implementations§
impl Collect for ModelRegistration
Auto Trait Implementations§
impl Forget for ModelRegistration
impl Freeze for ModelRegistration
impl RefUnwindSafe for ModelRegistration
impl Send for ModelRegistration
impl Sync for ModelRegistration
impl Unpin for ModelRegistration
impl UnsafeUnpin for ModelRegistration
impl UnwindSafe for ModelRegistration
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