mirror of
https://github.com/openai/codex.git
synced 2026-04-30 01:16:54 +00:00
Motivation: - `codex-app-server-protocol` schema fixtures are not insta snapshots. - Filtering `*.snap.new` is confusing and risks hiding real files. What changed: - Remove the `.snap.new` filename special case in `read_schema_fixture_tree`. Refs: macOS Bazel schema fixture mismatch investigation
77 lines
1.6 KiB
JSON
77 lines
1.6 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"ThreadTokenUsage": {
|
|
"properties": {
|
|
"last": {
|
|
"$ref": "#/definitions/TokenUsageBreakdown"
|
|
},
|
|
"modelContextWindow": {
|
|
"format": "int64",
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
]
|
|
},
|
|
"total": {
|
|
"$ref": "#/definitions/TokenUsageBreakdown"
|
|
}
|
|
},
|
|
"required": [
|
|
"last",
|
|
"total"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"TokenUsageBreakdown": {
|
|
"properties": {
|
|
"cachedInputTokens": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"inputTokens": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"outputTokens": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"reasoningOutputTokens": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"totalTokens": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"cachedInputTokens",
|
|
"inputTokens",
|
|
"outputTokens",
|
|
"reasoningOutputTokens",
|
|
"totalTokens"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
"properties": {
|
|
"threadId": {
|
|
"type": "string"
|
|
},
|
|
"tokenUsage": {
|
|
"$ref": "#/definitions/ThreadTokenUsage"
|
|
},
|
|
"turnId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"threadId",
|
|
"tokenUsage",
|
|
"turnId"
|
|
],
|
|
"title": "ThreadTokenUsageUpdatedNotification",
|
|
"type": "object"
|
|
} |