pub trait LLMInterface: Send + Sync {
// Required methods
fn generate_response(&self, prompt: &str) -> Result<String>;
fn generate_summary(
&self,
content: &str,
max_length: usize,
) -> Result<String>;
fn extract_key_points(
&self,
content: &str,
num_points: usize,
) -> Result<Vec<String>>;
}Expand description
Mock LLM interface for testing without external dependencies
Required Methods§
Sourcefn generate_response(&self, prompt: &str) -> Result<String>
fn generate_response(&self, prompt: &str) -> Result<String>
Generate a response based on the given prompt
Implementors§
impl LLMInterface for AsyncMockLLM
Synchronous LLMInterface implementation for backward compatibility