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

Function fetch_edges_for_ids

deployments/desktop/shared/agents.py:3782–3799  ·  view source on GitHub ↗
(candidate_ids: List[str])

Source from the content-addressed store, hash-verified

3780 block: List[str] = []
3781 index += 1
3782 while index < len(lines) and not lines[index].startswith("## ") and not lines[index].startswith("# "):
3783 block.append(lines[index].strip())
3784 index += 1
3785 methods: List[str] = []
3786 frontier = ""
3787 concept = current_topic
3788 for item in block:
3789 if item.startswith("- 概念:"):
3790 concept = item.split(":", 1)[1].strip() or concept
3791 elif item.startswith("- 方法:"):
3792 raw_methods = item.split(":", 1)[1].strip()
3793 if raw_methods and raw_methods != "待从后续精读中沉淀":
3794 methods = [part.strip() for part in re.split(r"[,,、]+", raw_methods) if part.strip()]
3795 elif item.startswith("- 画像/前沿:"):
3796 frontier = item.split(":", 1)[1].strip()
3797 summaries[current_topic] = {
3798 "concept": concept,
3799 "methods": methods,
3800 "frontier": frontier,
3801 }
3802 continue

Callers 1

wiki_graphFunction · 0.85

Calls 2

fetchallMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected