OSSS.ai.orchestration.routing.heuristics¶
OSSS.ai.orchestration.routing.heuristics
¶
Pure heuristics for DB-query detection and historian enablement.
should_route_to_data_query(user_text, execution_state=None)
¶
Heuristic to decide if a user request should bypass refiner/critic/synthesis and go directly to data_query.
Can optionally use classifier output from execution_state (if provided) to strengthen DB-query detection.