Trait ComputeLanguageModelRequests

Source
pub trait ComputeLanguageModelRequests {
    type Seed: HasAssociatedOutputName + Send + Sync;

    // Required method
    fn compute_language_model_requests(
        &self,
        model: &LanguageModelType,
        input_tokens: &[Self::Seed],
    ) -> Vec<LanguageModelBatchAPIRequest>;
}
Expand description

This is the trait we will typically need to implement manually

Required Associated Types§

Required Methods§

Source

fn compute_language_model_requests( &self, model: &LanguageModelType, input_tokens: &[Self::Seed], ) -> Vec<LanguageModelBatchAPIRequest>

Identify which new items need to be processed and build the requests.

Implementors§