A high-performance inference engine for AI models
pub mod chat;
pub mod classification;
pub mod decision;
pub mod text_to_speech;
use std::any::Any;
use crate::interactive::components::HistoryCellType;
pub trait SessionState: Any + Send + Sync {
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
fn is_busy(&self) -> bool;
fn interrupt(&self) -> bool;
fn status_text(&self) -> Option<String>;
fn pending_history_cell(&self) -> Option<HistoryCellType>;
}