Skip to content

Commit adf115f

Browse files
authored
Merge pull request #41 from jlaneve/patch-1
cost_usd -> total_cost_usd in example
2 parents 52cc0db + f868c59 commit adf115f

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)