MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _parse_directions_with_llm

Function _parse_directions_with_llm

agents/coldstart-agent/main.py:1504–1514  ·  view source on GitHub ↗

Use the shared canonical direction normalizer as the LLM-backed fallback.

(text: str)

Source from the content-addressed store, hash-verified

1502
1503
1504def _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
1517def _split_direction_clauses(text: str) -> List[str]:

Callers 1

parse_natural_languageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected