Trait GetBatchFileContent

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

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

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

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

Source§

type Error = E

Source§

fn file_content<'life0, 'life1, 'async_trait>( &'life0 self, file_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Bytes, <Arc<dyn LanguageModelClientInterface<E, Error = E, Error = E, Error = E, Error = E, Error = E>> as GetBatchFileContent>::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§