Use the shared canonical direction normalizer as the LLM-backed fallback.
(text: str)
| 1502 | |
| 1503 | |
| 1504 | def _parse_directions_with_llm(text: str) -> Dict[str, Any]: |
| 1505 | """Use the shared canonical direction normalizer as the LLM-backed fallback.""" |
| 1506 | try: |
| 1507 | llm_parser = importlib.import_module("agents.master-coordinator.scripts.llm_parser") |
| 1508 | return llm_parser.normalize_research_directions( |
| 1509 | text, |
| 1510 | auto_persist_known_aliases=True, |
| 1511 | ) |
| 1512 | except Exception as e: |
| 1513 | print(f"LLM direction parsing failed: {e}") |
| 1514 | return {"canonical_directions": [], "pending_candidates": [], "explanations": []} |
| 1515 | |
| 1516 | |
| 1517 | def _split_direction_clauses(text: str) -> List[str]: |
no outgoing calls
no test coverage detected