use tokio::sync::{mpsc, oneshot};
pub(crate) enum LlamaCommand {
Chat {
prompt: String,
images: Vec<String>, reply_tx: oneshot::Sender<crate::error::Result<String>>,
},
ChatStream {
prompt: String,
images: Vec<String>, chunk_tx: mpsc::Sender<crate::error::Result<String>>,
done_tx: oneshot::Sender<()>,
},
Reset,
EvaluateEntropy {
sentence: String,
reply_tx: oneshot::Sender<crate::error::Result<f32>>,
},
CountTokens {
text: String,
reply_tx: oneshot::Sender<crate::error::Result<usize>>,
},
Shutdown,
}