MCPcopy Index your code
hub / github.com/CommonstackAI/UncommonRoute / fake_route

Method fake_route

tests/test_proxy.py:1042–1060  ·  view source on GitHub ↗
(*_args, **kwargs)

Source from the content-addressed store, hash-verified

1040 captured: dict[str, object] = {}
1041
1042 def fake_route(*_args, **kwargs) -> RoutingDecision:
1043 routed["available_models"] = list(kwargs.get("available_models") or [])
1044 return RoutingDecision(
1045 model="anthropic/claude-opus-4-5",
1046 tier=Tier.COMPLEX,
1047 capability_lane=CapabilityLane.GENERAL,
1048 served_quality=ServedQuality.PREMIUM,
1049 served_quality_target=ServedQuality.PREMIUM,
1050 served_quality_floor=ServedQuality.BALANCED,
1051 continuity_quality_floor=kwargs["routing_features"].continuity_quality_floor,
1052 mode=RoutingMode.AUTO,
1053 confidence=0.9,
1054 method="pool",
1055 reasoning="session route",
1056 cost_estimate=0.001,
1057 baseline_cost=0.002,
1058 savings=0.5,
1059 routing_features=kwargs["routing_features"],
1060 )
1061
1062 def handler(request: httpx.Request) -> httpx.Response:
1063 captured["body"] = json.loads(request.content.decode("utf-8"))

Callers

nothing calls this directly

Calls 2

RoutingDecisionClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected