pub struct RegistryModelCatalog { /* private fields */ }Expand description
Model catalog backed by the live provider registry.
Implementations§
Source§impl RegistryModelCatalog
impl RegistryModelCatalog
pub fn new(registry: Arc<ProviderRegistry>) -> Self
Trait Implementations§
Source§impl ModelCatalogPort for RegistryModelCatalog
impl ModelCatalogPort for RegistryModelCatalog
Source§fn list_models<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<ProviderModelList>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_models<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<ProviderModelList>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Best-effort model listing per configured provider. Providers whose
listing fails are still returned (with
error set) so the caller can
see they exist.Source§fn default_provider(&self) -> String
fn default_provider(&self) -> String
The default provider name (used to resolve a bare model id without a
provider: prefix).Auto Trait Implementations§
impl Freeze for RegistryModelCatalog
impl RefUnwindSafe for RegistryModelCatalog
impl Send for RegistryModelCatalog
impl Sync for RegistryModelCatalog
impl Unpin for RegistryModelCatalog
impl UnsafeUnpin for RegistryModelCatalog
impl UnwindSafe for RegistryModelCatalog
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