semantic_query/interceptors/
mod.rs

1use async_trait::async_trait;
2use std::fmt::Debug;
3
4#[async_trait]
5pub trait Interceptor: Send + Sync + Debug {
6    async fn save(&self, prompt: &str, response: &str) -> Result<(), Box<dyn std::error::Error>>;
7}
8
9pub mod file;
10pub use file::FileInterceptor;