1
2
3
4
5
6
7
8
9
10
11
use crate::error::Error;
use async_trait::async_trait;

#[async_trait]
pub trait LLMBackend: std::fmt::Debug + Send + Sync {
    async fn generate_response(&self, temperature: f64, prompt: &str) -> Result<String, Error>;
}

pub trait MessageBuilder {
    fn build(&mut self) -> String;
}