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 8bf1d94 commit 240f71cCopy full SHA for 240f71c
docs/models/anthropic.md
@@ -197,6 +197,10 @@ async def main():
197
'Context', CachePoint(), # 4th cache point - OK
198
'Question'
199
])
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}')
204
```
205
206
#### Automatic Cache Point Limiting
@@ -227,6 +231,10 @@ async def main():
227
231
228
232
229
233
# Final cache points: instructions + tools + Context 2 + Context 3 = 4
234
235
236
237
230
238
239
240
**Key Points**:
0 commit comments