pub struct ModelProviderConfigService { /* private fields */ }Expand description
Async model provider configuration service.
Implementations§
Source§impl ModelProviderConfigService
impl ModelProviderConfigService
pub fn new(paths: RuntimePaths) -> Self
pub async fn profiles( &self, retrieval: &ReadModelBackendConfig, ) -> Result<ModelProfilesResponse, ModelProviderError>
pub async fn profile_summary( &self, retrieval: &ReadModelBackendConfig, ) -> ModelProfileRuntimeSummary
pub async fn save_profile( &self, name: &str, request: ModelProfileSaveRequest, retrieval: &ReadModelBackendConfig, ) -> Result<ModelProfilesResponse, ModelProviderError>
pub async fn delete_profile( &self, name: &str, retrieval: &ReadModelBackendConfig, ) -> Result<ModelProfilesResponse, ModelProviderError>
pub async fn fallback_config( &self, ) -> Result<ModelFallbackConfig, ModelProviderError>
pub async fn save_fallback_config( &self, config: ModelFallbackConfig, ) -> Result<ModelFallbackConfig, ModelProviderError>
pub async fn catalog( &self, http: &HttpConfig, refresh: bool, ) -> Result<ModelCatalogResult, ModelProviderError>
pub async fn probe( &self, http: &HttpConfig, retrieval: &ReadModelBackendConfig, request: ModelConnectivityProbeRequest, ) -> Result<ModelConnectivityProbeResult, ModelProviderError>
pub async fn discover( &self, http: &HttpConfig, retrieval: &ReadModelBackendConfig, request: ModelDiscoveryRequest, ) -> Result<ModelDiscoveryResult, ModelProviderError>
Trait Implementations§
Source§impl Clone for ModelProviderConfigService
impl Clone for ModelProviderConfigService
Source§fn clone(&self) -> ModelProviderConfigService
fn clone(&self) -> ModelProviderConfigService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelProviderConfigService
impl RefUnwindSafe for ModelProviderConfigService
impl Send for ModelProviderConfigService
impl Sync for ModelProviderConfigService
impl Unpin for ModelProviderConfigService
impl UnsafeUnpin for ModelProviderConfigService
impl UnwindSafe for ModelProviderConfigService
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