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

Function _remove_clause_from_text

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

Remove one resolved clause from the text so generic keywords do not double-fire.

(text: str, clause: str)

Source from the content-addressed store, hash-verified

1556
1557def _parse_directions_with_llm(text: str) -> Dict[str, Any]:
1558 """Use the shared canonical direction normalizer as the LLM-backed fallback."""
1559 try:
1560 llm_parser = importlib.import_module("agents.master-coordinator.scripts.llm_parser")
1561 return llm_parser.normalize_research_directions(
1562 text,
1563 auto_persist_known_aliases=True,
1564 )
1565 except Exception as e:
1566 print(f"LLM direction parsing failed: {e}")

Callers 1

parse_natural_languageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected