pub struct LocalLLMProvider { /* private fields */ }Expand description
A provider for a local LLM.
Implementations§
Source§impl LocalLLMProvider
impl LocalLLMProvider
Sourcepub async fn new(config: LocalConfig) -> Result<Self>
pub async fn new(config: LocalConfig) -> Result<Self>
Creates a new LocalLLMProvider.
Trait Implementations§
Source§impl LLMProvider for LocalLLMProvider
impl LLMProvider for LocalLLMProvider
Source§fn generate<'life0, 'async_trait>(
&'life0 self,
request: LLMRequest,
) -> Pin<Box<dyn Future<Output = Result<LLMResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn generate<'life0, 'async_trait>(
&'life0 self,
request: LLMRequest,
) -> Pin<Box<dyn Future<Output = Result<LLMResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Generates a response from the LLM.
Auto Trait Implementations§
impl Freeze for LocalLLMProvider
impl RefUnwindSafe for LocalLLMProvider
impl Send for LocalLLMProvider
impl Sync for LocalLLMProvider
impl Unpin for LocalLLMProvider
impl UnwindSafe for LocalLLMProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more