Skip to content

Commit 240f71c

Browse files
committed
fix ci
1 parent 8bf1d94 commit 240f71c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/models/anthropic.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ async def main():
197197
'Context', CachePoint(), # 4th cache point - OK
198198
'Question'
199199
])
200+
print(result.output)
201+
usage = result.usage()
202+
print(f'Cache write tokens: {usage.cache_write_tokens}')
203+
print(f'Cache read tokens: {usage.cache_read_tokens}')
200204
```
201205

202206
#### Automatic Cache Point Limiting
@@ -227,6 +231,10 @@ async def main():
227231
'Question'
228232
])
229233
# Final cache points: instructions + tools + Context 2 + Context 3 = 4
234+
print(result.output)
235+
usage = result.usage()
236+
print(f'Cache write tokens: {usage.cache_write_tokens}')
237+
print(f'Cache read tokens: {usage.cache_read_tokens}')
230238
```
231239

232240
**Key Points**:

0 commit comments

Comments
 (0)