Skip to main content

Client

Trait Client 

Source
pub trait Client<CTXEXT> {
    // Required methods
    fn list<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context<CTXEXT>,
    ) -> Pin<Box<dyn Future<Output = Result<ListEnsembleLlm, ResponseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_usage<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: Context<CTXEXT>,
        id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<UsageEnsembleLlm, ResponseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for listing Ensemble LLMs and retrieving usage statistics.

Required Methods§

Source

fn list<'life0, 'async_trait>( &'life0 self, ctx: Context<CTXEXT>, ) -> Pin<Box<dyn Future<Output = Result<ListEnsembleLlm, ResponseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists all Ensemble LLMs.

Source

fn get_usage<'life0, 'life1, 'async_trait>( &'life0 self, ctx: Context<CTXEXT>, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<UsageEnsembleLlm, ResponseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Retrieves usage statistics for an Ensemble LLM by ID.

Implementors§

Source§

impl<CTXEXT> Client<CTXEXT> for ObjectiveAiClient
where CTXEXT: Send + Sync + 'static,