| use derive_setters::Setters; | |
| use serde::{Deserialize, Serialize}; | |
| use crate::{ConversationId, Event}; | |
| pub struct ChatRequest { | |
| pub event: Event, | |
| pub conversation_id: ConversationId, | |
| } | |
| impl ChatRequest { | |
| pub fn new(content: Event, conversation_id: ConversationId) -> Self { | |
| Self { event: content, conversation_id } | |
| } | |
| } | |