Skip to content

token usage#783

Merged
nonoqing merged 4 commits into
GCWing:mainfrom
nonoqing:yuyiqing/dev
May 19, 2026
Merged

token usage#783
nonoqing merged 4 commits into
GCWing:mainfrom
nonoqing:yuyiqing/dev

Conversation

@nonoqing
Copy link
Copy Markdown
Collaborator

No description provided.

nonoqing added 4 commits May 19, 2026 10:20
…-to-end

The legacy wire-serialized GeminiUsage type now mirrors the
cache_creation_token_count field already on UnifiedTokenUsage. The
two GeminiUsage construction sites (response_aggregator and
agent-stream's handle_usage) propagate the value through so the
Anthropic cache-write signal survives all the way to persistence
and any downstream consumer of token_details.

Field uses serde rename "cacheCreationTokenCount" matching the
existing camelCase wire convention, and serde default so records
persisted before this commit still deserialize cleanly.
@nonoqing nonoqing merged commit 24ad4aa into GCWing:main May 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant