sllm/
traits.rs

1use crate::error::Error;
2use async_trait::async_trait;
3
4#[async_trait]
5pub trait LLMBackend: std::fmt::Debug + Send + Sync {
6    async fn generate_response(&self, temperature: f64, prompt: &str) -> Result<String, Error>;
7}
8
9pub trait MessageBuilder {
10    fn build(&mut self) -> String;
11}