We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91bf184 commit 28c461bCopy full SHA for 28c461b
src/strands/types/event_loop.py
@@ -5,18 +5,22 @@
5
from typing_extensions import TypedDict
6
7
8
-class Usage(TypedDict):
+class Usage(TypedDict, total=False):
9
"""Token usage information for model interactions.
10
11
Attributes:
12
inputTokens: Number of tokens sent in the request to the model..
13
outputTokens: Number of tokens that the model generated for the request.
14
totalTokens: Total number of tokens (input + output).
15
+ cacheReadInputTokens: Number of tokens read from cache.
16
+ cacheWriteInputTokens: Number of tokens written to cache.
17
"""
18
19
inputTokens: int
20
outputTokens: int
21
totalTokens: int
22
+ cacheReadInputTokens: int
23
+ cacheWriteInputTokens: int
24
25
26
class Metrics(TypedDict):
0 commit comments