Skip to content

Commit dec5a1d

Browse files
committed
fix cost print
1 parent eb15db5 commit dec5a1d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/01_standalone_sdk/30_tom_agent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,7 @@
9898
# conversation.send_message("Please index this conversation using sleeptime_compute")
9999
# conversation.run()
100100
# print("\nConversation indexed for user modeling!")
101+
102+
# Report cost
103+
cost = llm.metrics.accumulated_cost
104+
print(f"EXAMPLE_COST: {cost}")

0 commit comments

Comments
 (0)