Trait ModelClient

Source
pub trait ModelClient<I, O> {
    // Required method
    fn infer<'life0, 'async_trait>(
        &'life0 self,
        input: I,
    ) -> Pin<Box<dyn Future<Output = Result<O>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for normal model inference

Required Methods§

Source

fn infer<'life0, 'async_trait>( &'life0 self, input: I, ) -> Pin<Box<dyn Future<Output = Result<O>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<T> ModelClient<LlmInput, LlmOutput> for LlmClient<T>
where T: ModelSDK<Input = LlmInput, Output = LlmOutput> + Sync + Send,

Source§

impl<T> ModelClient<VisionInput, VisionOutput> for VisionClient<T>
where T: ModelSDK<Input = VisionInput, Output = VisionOutput> + Sync + Send,