Skip to content

OSSS.ai.agents.data_query.wizard.utils

OSSS.ai.agents.data_query.wizard.utils

choose_route_for_query(raw_text, classifier)

Decide which DataQueryRoute to use based on classifier output, with resolve_route and find_route_for_text as the single sources of truth.

Order

1) If classifier.topic_confidence is high enough, try classifier.topic and classifier.topics[] 2) Otherwise (or if those fail), fall back to text-based route matching: find_route_for_text(raw_text)