@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.
- package/dist/agent-types.d.ts +7 -0
- package/dist/generated/validation/ws-outbound.aot.js +15008 -12713
- package/dist/messages.d.ts +2199 -8
- package/dist/messages.js +373 -1
- package/dist/provider-config.d.ts +12 -0
- package/dist/provider-config.js +15 -0
- package/dist/provider-manifest.js +13 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +398 -1
- package/package.json +2 -1
package/dist/agent-types.d.ts
CHANGED
|
@@ -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;
|