Skip to main content

CreateProviderFn

Type Alias CreateProviderFn 

Source
pub type CreateProviderFn = Box<dyn Fn(&str) -> BoxFuture<'static, Result<Box<dyn StreamingModelProvider>>> + Send + Sync>;
Expand description

Factory function type for creating model providers

Takes a model name and returns a boxed future that resolves to a StreamingModelProvider

Aliased Typeยง

pub struct CreateProviderFn(/* private fields */);