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 30d9d5d commit 5a961e4Copy full SHA for 5a961e4
src/strands/types/event_loop.py
@@ -1,6 +1,6 @@
1
"""Event loop-related type definitions for the SDK."""
2
3
-from typing import Literal
+from typing import Literal, Optional
4
5
from typing_extensions import TypedDict
6
@@ -19,8 +19,8 @@ class Usage(TypedDict, total=False):
19
inputTokens: int
20
outputTokens: int
21
totalTokens: int
22
- cacheReadInputTokens: int
23
- cacheWriteInputTokens: int
+ cacheReadInputTokens: Optional[int]
+ cacheWriteInputTokens: Optional[int]
24
25
26
class Metrics(TypedDict):
0 commit comments