@otto-code/protocol 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -199,6 +199,13 @@ export interface ContextComposition {
199
199
  export interface AgentUsage {
200
200
  inputTokens?: number;
201
201
  cachedInputTokens?: number;
202
+ /**
203
+ * Prompt tokens spent writing (not reading) the prompt cache this turn —
204
+ * Anthropic's `cache_creation_input_tokens`, billed above normal input.
205
+ * Disjoint from `inputTokens`/`cachedInputTokens`. Claude-specific today;
206
+ * other providers omit it. Optional/additive.
207
+ */
208
+ cacheCreationInputTokens?: number;
202
209
  outputTokens?: number;
203
210
  totalCostUsd?: number;
204
211
  contextWindowMaxTokens?: number;