agent_storage/conversation/
conversation.rs1use super::ConversationId;
4use crate::FamilyId;
5use agent_runtime::Message;
6use chrono::{DateTime, Utc};
7use serde::{Deserialize, Serialize};
8
9#[derive(Debug, Clone, Serialize, Deserialize)]
11pub struct Conversation {
12 pub id: ConversationId,
13 pub owner: String,
15 pub agent: String,
16 #[serde(default = "super::default_conversation_title")]
18 pub title: String,
19 #[serde(default)]
21 pub archived: bool,
22 #[serde(default)]
24 pub selected_family_id: Option<FamilyId>,
25 pub created_at: DateTime<Utc>,
26 pub updated_at: DateTime<Utc>,
27 pub messages: Vec<Message>,
28}