feat(types): add cache_read_cost and cache_creation_cost fields to CostBreakdown TypedDict

This commit is contained in:
Ishaan Jaffer 2026-04-14 18:20:28 -07:00
parent d805fe7103
commit c1dcfa70c9
No known key found for this signature in database

View file

@ -2798,7 +2798,9 @@ class CostBreakdown(TypedDict, total=False):
Detailed cost breakdown for a request
"""
input_cost: float # Cost of input/prompt tokens
input_cost: float # Cost of raw (non-cached) input tokens only
cache_read_cost: float # Cost of cache-read tokens (discounted rate)
cache_creation_cost: float # Cost of cache-write tokens (premium rate)
output_cost: (
float # Cost of output/completion tokens (includes reasoning if applicable)
)