chatty_rs/models/
action.rs1use super::{BackendPrompt, Context, Conversation, Message};
2
3pub enum Action {
4 BackendAbort,
5 BackendRequest(BackendPrompt),
6
7 SetConversation(String),
8 UpsertConversation(UpsertConvoRequest),
9 DeleteConversation(String), UpsertMessage(String, Message), UpsertConvoContext(String, Context), DeleteMessage(String), CompressConversation(String, String), CopyMessages(Vec<Message>),
16}
17
18pub struct UpsertConvoRequest {
19 pub convo: Conversation,
20 pub include_messages: bool,
21 pub include_context: bool,
22}