Commit 0678f56
fix: Use tokens= instead of usage= on LDAIMetrics constructors
- bedrock_example.py and langgraph_agent_example.py both passed usage= to
LDAIMetrics(...) constructors, which raises TypeError on Python AI SDK
0.16+. The dataclass field is tokens.
Refs AIC-2383
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9f453e1 commit 0678f56
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- getting_started
- bedrock/converse
- langgraph/react_agent
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments