Files
codex/codex-rs/protocol/src/message_history.rs
jif-oai 96da76b77c NIT 3
2025-12-23 10:48:20 +01:00

15 lines
369 B
Rust

use schemars::JsonSchema;
use serde::Deserialize;
use serde::Serialize;
use ts_rs::TS;
#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema, TS)]
pub struct HistoryEntry {
pub conversation_id: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub agent_id: Option<String>,
pub ts: u64,
pub text: String,
}