pub struct NoOpLlmClient;Expand description
Placeholder client that always returns LlmError::NoLlmAvailable. Used by
callers that need a &dyn LlmClient value but know they will never actually
invoke it (e.g., when running only non-LLM mutators).
Trait Implementations§
Source§impl Clone for NoOpLlmClient
impl Clone for NoOpLlmClient
Source§fn clone(&self) -> NoOpLlmClient
fn clone(&self) -> NoOpLlmClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoOpLlmClient
impl Debug for NoOpLlmClient
Source§impl Default for NoOpLlmClient
impl Default for NoOpLlmClient
Source§fn default() -> NoOpLlmClient
fn default() -> NoOpLlmClient
Returns the “default value” for a type. Read more
Source§impl LlmClient for NoOpLlmClient
impl LlmClient for NoOpLlmClient
Source§fn complete<'life0, 'life1, 'async_trait>(
&'life0 self,
_prompt: &'life1 str,
_max_tokens: u32,
) -> Pin<Box<dyn Future<Output = Result<CompletionResult, LlmError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn complete<'life0, 'life1, 'async_trait>(
&'life0 self,
_prompt: &'life1 str,
_max_tokens: u32,
) -> Pin<Box<dyn Future<Output = Result<CompletionResult, LlmError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run a single non-streaming completion.
impl Copy for NoOpLlmClient
Auto Trait Implementations§
impl Freeze for NoOpLlmClient
impl RefUnwindSafe for NoOpLlmClient
impl Send for NoOpLlmClient
impl Sync for NoOpLlmClient
impl Unpin for NoOpLlmClient
impl UnsafeUnpin for NoOpLlmClient
impl UnwindSafe for NoOpLlmClient
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