(*_args, **kwargs)
| 898 | calls: list[str] = [] |
| 899 | |
| 900 | def fake_route(*_args, **kwargs) -> RoutingDecision: |
| 901 | return RoutingDecision( |
| 902 | model="primary-model", |
| 903 | tier=Tier.MEDIUM, |
| 904 | capability_lane=CapabilityLane.GENERAL, |
| 905 | served_quality=ServedQuality.ECONOMY, |
| 906 | served_quality_target=ServedQuality.BALANCED, |
| 907 | served_quality_floor=ServedQuality.ECONOMY, |
| 908 | continuity_quality_floor=None, |
| 909 | mode=RoutingMode.AUTO, |
| 910 | confidence=0.8, |
| 911 | method="pool", |
| 912 | reasoning="test route", |
| 913 | cost_estimate=0.001, |
| 914 | baseline_cost=0.002, |
| 915 | savings=0.5, |
| 916 | routing_features=kwargs["routing_features"], |
| 917 | fallback_chain=[ |
| 918 | FallbackOption("primary-model", 0.001, 100), |
| 919 | FallbackOption("fallback-model", 0.001, 100), |
| 920 | ], |
| 921 | ) |
| 922 | |
| 923 | def handler(request: httpx.Request) -> httpx.Response: |
| 924 | body = json.loads(request.content.decode("utf-8")) |
nothing calls this directly
no test coverage detected