pub struct OllamaDiscovery { /* private fields */ }Expand description
Ollama model discovery.
Implementations§
Trait Implementations§
Source§impl ModelDiscovery for OllamaDiscovery
impl ModelDiscovery for OllamaDiscovery
Source§fn provider_id(&self) -> &str
fn provider_id(&self) -> &str
The provider ID this discovery implementation handles.
Source§fn discover_models<'life0, 'life1, 'async_trait>(
&'life0 self,
_api_key: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveredModel>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn discover_models<'life0, 'life1, 'async_trait>(
&'life0 self,
_api_key: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<DiscoveredModel>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Discover available models from the provider.
Auto Trait Implementations§
impl Freeze for OllamaDiscovery
impl !RefUnwindSafe for OllamaDiscovery
impl Send for OllamaDiscovery
impl Sync for OllamaDiscovery
impl Unpin for OllamaDiscovery
impl UnsafeUnpin for OllamaDiscovery
impl !UnwindSafe for OllamaDiscovery
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