Trait ModelMetadataFactory
Source pub trait ModelMetadataFactory: Send + Sync {
// Required methods
fn get_model_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
model_name: &'life1 str,
include_parameters: bool,
include_benchmark: bool,
project_id: Option<&'life2 Uuid>,
) -> Pin<Box<dyn Future<Output = Result<ModelMetadata, GatewayApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_cheapest_model_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
model_names: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<ModelMetadata, GatewayApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_models_by_name<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
model_name: &'life1 str,
project_id: Option<&'life2 Uuid>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ModelMetadata>, GatewayApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_top_by_ranking<'life0, 'life1, 'async_trait>(
&'life0 self,
ranking_name: &'life1 str,
top: u8,
) -> Pin<Box<dyn Future<Output = Result<Vec<ModelMetadata>, GatewayApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}