Trait WaitForBatchCompletion

Source
pub trait WaitForBatchCompletion: Send + Sync {
    type Error;

    // Required method
    fn wait_for_batch_completion<'life0, 'life1, 'async_trait>(
        &'life0 self,
        batch_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Batch, Self::Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn wait_for_batch_completion<'life0, 'life1, 'async_trait>( &'life0 self, batch_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Batch, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Implementations on Foreign Types§

Source§

impl<E> WaitForBatchCompletion for Arc<dyn LanguageModelClientInterface<E, Error = E, Error = E, Error = E, Error = E, Error = E>>
where E: Debug,

Source§

type Error = E

Source§

fn wait_for_batch_completion<'life0, 'life1, 'async_trait>( &'life0 self, batch_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Batch, <Arc<dyn LanguageModelClientInterface<E, Error = E, Error = E, Error = E, Error = E, Error = E>> as WaitForBatchCompletion>::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Arc<dyn LanguageModelClientInterface<E, Error = E, Error = E, Error = E, Error = E, Error = E>>: 'async_trait,

Implementors§