{ "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "TokenUsageBreakdown": { "properties": { "cacheWriteInputTokens": { "default": 0, "format": "int64", "type": "integer" }, "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" } }, "description": "Internal-only notification containing the exact usage from one upstream Responses API completion.", "properties": { "responseId": { "type": "string" }, "threadId": { "type": "string" }, "turnId": { "type": "string" }, "usage": { "anyOf": [ { "$ref": "#/definitions/TokenUsageBreakdown" }, { "type": "null" } ] } }, "required": [ "responseId", "threadId", "turnId" ], "title": "RawResponseCompletedNotification", "type": "object" }