MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _effective_cost

Function _effective_cost

uncommon_route/stats.py:222–225  ·  view source on GitHub ↗
(r: RouteRecord)

Source from the content-addressed store, hash-verified

220
221
222def _effective_cost(r: RouteRecord) -> float:
223 main_cost = r.actual_cost if r.actual_cost is not None else r.estimated_cost
224 side_cost = r.sidechannel_actual_cost if r.sidechannel_actual_cost is not None else r.sidechannel_estimated_cost
225 return main_cost + side_cost
226
227
228def _baseline_cost(r: RouteRecord) -> float:

Callers 2

summaryMethod · 0.85
record_to_recent_dictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected