Files
baibot-withmcp/src/conversation/llm/entity.rs

18 lines
272 B
Rust
Raw Normal View History

2024-09-12 13:44:06 +03:00
#[derive(Debug, Clone, PartialEq)]
pub enum Author {
Prompt,
Assistant,
User,
}
#[derive(Debug, Clone)]
pub struct Message {
pub author: Author,
pub message_text: String,
}
#[derive(Debug)]
pub struct Conversation {
pub messages: Vec<Message>,
}