[codex-analytics] add protocol-native turn timestamps

This commit is contained in:
rhan-oai
2026-04-02 18:52:32 -07:00
parent 0bd31dc382
commit 3d1314ca03
23 changed files with 204 additions and 4 deletions

View File

@@ -3566,6 +3566,19 @@
},
"TurnCompletedNotification": {
"properties": {
"completedAt": {
"description": "Unix timestamp (in seconds) when the turn completed.",
"format": "int64",
"type": "integer"
},
"durationMs": {
"description": "Duration between turn start and completion in milliseconds, if known.",
"format": "int64",
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
},
@@ -3574,6 +3587,7 @@
}
},
"required": [
"completedAt",
"threadId",
"turn"
],
@@ -3680,6 +3694,11 @@
},
"TurnStartedNotification": {
"properties": {
"createdAt": {
"description": "Unix timestamp (in seconds) when the turn started.",
"format": "int64",
"type": "integer"
},
"threadId": {
"type": "string"
},
@@ -3688,6 +3707,7 @@
}
},
"required": [
"createdAt",
"threadId",
"turn"
],

View File

@@ -14364,6 +14364,19 @@
"TurnCompletedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"completedAt": {
"description": "Unix timestamp (in seconds) when the turn completed.",
"format": "int64",
"type": "integer"
},
"durationMs": {
"description": "Duration between turn start and completion in milliseconds, if known.",
"format": "int64",
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
},
@@ -14372,6 +14385,7 @@
}
},
"required": [
"completedAt",
"threadId",
"turn"
],
@@ -14640,6 +14654,11 @@
"TurnStartedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"createdAt": {
"description": "Unix timestamp (in seconds) when the turn started.",
"format": "int64",
"type": "integer"
},
"threadId": {
"type": "string"
},
@@ -14648,6 +14667,7 @@
}
},
"required": [
"createdAt",
"threadId",
"turn"
],

View File

@@ -12219,6 +12219,19 @@
"TurnCompletedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"completedAt": {
"description": "Unix timestamp (in seconds) when the turn completed.",
"format": "int64",
"type": "integer"
},
"durationMs": {
"description": "Duration between turn start and completion in milliseconds, if known.",
"format": "int64",
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
},
@@ -12227,6 +12240,7 @@
}
},
"required": [
"completedAt",
"threadId",
"turn"
],
@@ -12495,6 +12509,11 @@
"TurnStartedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"createdAt": {
"description": "Unix timestamp (in seconds) when the turn started.",
"format": "int64",
"type": "integer"
},
"threadId": {
"type": "string"
},
@@ -12503,6 +12522,7 @@
}
},
"required": [
"createdAt",
"threadId",
"turn"
],

View File

@@ -1559,6 +1559,19 @@
}
},
"properties": {
"completedAt": {
"description": "Unix timestamp (in seconds) when the turn completed.",
"format": "int64",
"type": "integer"
},
"durationMs": {
"description": "Duration between turn start and completion in milliseconds, if known.",
"format": "int64",
"type": [
"integer",
"null"
]
},
"threadId": {
"type": "string"
},
@@ -1567,6 +1580,7 @@
}
},
"required": [
"completedAt",
"threadId",
"turn"
],

View File

@@ -1559,6 +1559,11 @@
}
},
"properties": {
"createdAt": {
"description": "Unix timestamp (in seconds) when the turn started.",
"format": "int64",
"type": "integer"
},
"threadId": {
"type": "string"
},
@@ -1567,6 +1572,7 @@
}
},
"required": [
"createdAt",
"threadId",
"turn"
],

View File

@@ -3,4 +3,12 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Turn } from "./Turn";
export type TurnCompletedNotification = { threadId: string, turn: Turn, };
export type TurnCompletedNotification = { threadId: string, turn: Turn,
/**
* Unix timestamp (in seconds) when the turn completed.
*/
completedAt: number,
/**
* Duration between turn start and completion in milliseconds, if known.
*/
durationMs: number | null, };

View File

@@ -3,4 +3,8 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Turn } from "./Turn";
export type TurnStartedNotification = { threadId: string, turn: Turn, };
export type TurnStartedNotification = { threadId: string, turn: Turn,
/**
* Unix timestamp (in seconds) when the turn started.
*/
createdAt: number, };