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 5be1f4b commit 2a88039Copy full SHA for 2a88039
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, Optional
+from typing import Literal
4
5
from typing_extensions import Required, TypedDict
6
@@ -19,8 +19,8 @@ class Usage(TypedDict, total=False):
19
inputTokens: Required[int]
20
outputTokens: Required[int]
21
totalTokens: Required[int]
22
- cacheReadInputTokens: Optional[int]
23
- cacheWriteInputTokens: Optional[int]
+ cacheReadInputTokens: int
+ cacheWriteInputTokens: int
24
25
26
class Metrics(TypedDict):
0 commit comments