pub struct ExportedTurn {
pub turn_id: String,
pub role: String,
pub content: String,
pub timestamp: i64,
pub sha256: Option<String>,
pub original_length: Option<u64>,
}Expand description
One turn of a thread’s archive in the ingest shape (Phase 12.7d),
as returned by crate::Mnemo::thread_export_turns and by Python
db.thread_export, MCP thread_export and mnemo thread export.
Turns come back in _mnemo.seq order, one entry per source turn: the
8 KB chunks of a long turn are joined back into one content, so
feeding the list to ingest_thread (same thread: every turn is
skipped; a new thread: the turns are re-chunked identically) round
trips. A tool result that was truncated at 16 KB carries sha256 and
original_length of the original content.
Fields§
§turn_id: StringSource turn_id (_mnemo.turn_id).
role: StringAuthor role (_mnemo.role).
content: StringStored text, with chunks joined in _mnemo.part order.
timestamp: i64The turn’s timestamp (unix seconds; the record’s created_at).
sha256: Option<String>Hex SHA-256 of the original content, set only for a truncated tool result.
original_length: Option<u64>Byte length of the original content, set only for a truncated tool result.