GetBatchFileContent

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,

Implementors§

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§

impl<E> GetBatchFileContent for MockLanguageModelClient<E>

Source§

type Error = E

Source§

impl<E> GetBatchFileContent for OpenAIClientHandle<E>

Source§

type Error = E