pub struct MockLLM { /* private fields */ }Expand description
Simple mock LLM implementation for testing
Implementations§
Trait Implementations§
Source§impl LLMInterface for MockLLM
impl LLMInterface for MockLLM
Source§impl LanguageModel for MockLLM
impl LanguageModel for MockLLM
Source§type Error = GraphRAGError
type Error = GraphRAGError
The error type returned by generation operations
Source§fn complete_with_params(
&self,
prompt: &str,
_params: GenerationParams,
) -> Result<String>
fn complete_with_params( &self, prompt: &str, _params: GenerationParams, ) -> Result<String>
Generate text with custom parameters
Source§fn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if the model is available
Source§fn model_info(&self) -> ModelInfo
fn model_info(&self) -> ModelInfo
Get model information
Auto Trait Implementations§
impl Freeze for MockLLM
impl RefUnwindSafe for MockLLM
impl Send for MockLLM
impl Sync for MockLLM
impl Unpin for MockLLM
impl UnsafeUnpin for MockLLM
impl UnwindSafe for MockLLM
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more