File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
cascadeflow/integrations/pydantic_ai Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 77from __future__ import annotations
88
99import logging
10- from typing import Optional
1110
1211from cascadeflow .harness import get_current_run
1312from cascadeflow .harness .pricing import estimate_cost , estimate_energy
Original file line number Diff line number Diff line change 2222import logging
2323import time
2424from contextlib import asynccontextmanager
25- from importlib .util import find_spec
2625from typing import Any , Optional
2726
2827from cascadeflow .harness .pricing import estimate_cost
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ async def main() -> None:
5858 # Inspect cascade decision
5959 cascade_result = cascade .get_last_cascade_result ()
6060 if cascade_result :
61- print (f "\n === Cascade Decision ===" )
61+ print ("\n === Cascade Decision ===" )
6262 print (f"Model used: { cascade_result ['model_used' ]} " )
6363 print (f"Drafter accepted: { cascade_result ['accepted' ]} " )
6464 print (f"Drafter quality: { cascade_result ['drafter_quality' ]:.2f} " )
@@ -67,13 +67,13 @@ async def main() -> None:
6767 print (f"Total cost: ${ cascade_result ['total_cost' ]:.6f} " )
6868 print (f"Savings: { cascade_result ['savings_percentage' ]:.1f} %" )
6969
70- print (f "\n === Harness Metrics ===" )
70+ print ("\n === Harness Metrics ===" )
7171 print (f"Cost: ${ session .cost :.6f} " )
7272 print (f"Remaining budget: { session .budget_remaining } " )
7373 print (f"Steps: { session .step_count } " )
7474 print (f"Energy: { session .energy_used :.1f} " )
7575 print (f"Latency: { session .latency_used_ms :.0f} ms" )
76- print (f "\n === Decision Trace ===" )
76+ print ("\n === Decision Trace ===" )
7777 for event in session .trace ():
7878 print (event )
7979
You can’t perform that action at this time.
0 commit comments