Skip to main content

subspace_agent_model/
lib.rs

1//! Records shared by chat runtimes and reusable dashboard UI. No runtime or UI dependencies.
2mod image_attachment;
3pub use image_attachment::{DRAFT_ATTACHMENT_LIMIT, ImageAttachment};
4
5#[derive(Clone, Debug, PartialEq, Eq)]
6pub struct ContextRef {
7    pub key: String,
8    pub label: String,
9    pub content: String,
10}
11
12/// A saved conversation of the current account.
13#[derive(Clone, Debug, Default, PartialEq, Eq)]
14pub struct SessionSummary {
15    pub id: String,
16    /// The session name, else a title cleaned from its summary.
17    pub title: String,
18    /// How long ago the session changed, ready to show, such as "5 min ago".
19    pub modified: String,
20    /// ISO 8601 modification time, as the SDK reported it, for grouping.
21    pub modified_at: String,
22    /// ISO 8601 creation time, as the SDK reported it.
23    pub created_at: String,
24}