[codex-analytics] guardian review TTFT plumbing and emission

This commit is contained in:
rhan-oai
2026-04-14 18:12:28 -07:00
parent 53c40a342e
commit aef23265a4
19 changed files with 112 additions and 3 deletions
+4
View File
@@ -2057,6 +2057,10 @@ pub struct TurnCompleteEvent {
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "number | null", optional)]
pub duration_ms: Option<i64>,
/// Duration between turn start and the first model token in milliseconds, if known.
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "number | null", optional)]
pub time_to_first_token_ms: Option<i64>,
}
#[derive(Debug, Clone, Deserialize, Serialize, JsonSchema, TS)]