mirror of
https://github.com/openai/codex.git
synced 2026-04-30 09:26:44 +00:00
15 lines
369 B
Rust
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,
|
|
}
|