Skip to content

Commit c775ff6

Browse files
Fix: Add EXAMPLE_COST marker to critic example (#1830)
Co-authored-by: openhands <[email protected]>
1 parent 09fa850 commit c775ff6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/01_standalone_sdk/34_critic_example.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,8 @@ def get_default_critic(llm: LLM) -> CriticBase | None:
9696
)
9797
conversation.run()
9898

99+
# Report cost
100+
cost = llm.metrics.accumulated_cost
101+
print(f"EXAMPLE_COST: {cost:.4f}")
102+
99103
print("\nAll done! Check the output above for 'Critic Score' in the visualizer.")

0 commit comments

Comments
 (0)