(features: RoutingFeatures | None)
| 63 | |
| 64 | |
| 65 | def request_capability_lane(features: RoutingFeatures | None) -> CapabilityLane: |
| 66 | if features and features.capability_lane is not None: |
| 67 | return features.capability_lane |
| 68 | if features and features.needs_vision: |
| 69 | return CapabilityLane.VISION |
| 70 | if features and features.prefers_reasoning: |
| 71 | return CapabilityLane.REASONING |
| 72 | return CapabilityLane.GENERAL |
| 73 | |
| 74 | |
| 75 | def target_served_quality(mode: RoutingMode, tier: Tier) -> ServedQuality: |
no outgoing calls
no test coverage detected