pub struct ModelManager { /* private fields */ }Implementations§
Source§impl ModelManager
impl ModelManager
pub fn new(models_dir: String) -> Self
pub async fn pull_model(&mut self, name: &str) -> Result<()>
pub async fn run_model( &self, name: &str, prompt: Option<&str>, ) -> Result<String>
pub fn list_models(&self) -> Vec<&ModelInfo>
pub fn get_model(&self, name: &str) -> Option<&ModelInfo>
Auto Trait Implementations§
impl Freeze for ModelManager
impl RefUnwindSafe for ModelManager
impl Send for ModelManager
impl Sync for ModelManager
impl Unpin for ModelManager
impl UnsafeUnpin for ModelManager
impl UnwindSafe for ModelManager
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