Skip to content

Commit f868c59

Browse files
authored
cost_usd -> total_cost_usd in example
1 parent 52cc0db commit f868c59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/quick_start.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ async def with_tools_example():
6060
for block in message.content:
6161
if isinstance(block, TextBlock):
6262
print(f"Claude: {block.text}")
63-
elif isinstance(message, ResultMessage) and message.cost_usd > 0:
64-
print(f"\nCost: ${message.cost_usd:.4f}")
63+
elif isinstance(message, ResultMessage) and message.total_cost_usd > 0:
64+
print(f"\nCost: ${message.total_cost_usd:.4f}")
6565
print()
6666

6767

0 commit comments

Comments
 (0)