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

Function anchor_list

agents/reading-agent/main.py:3305–3310  ·  view source on GitHub ↗
(*buckets: str, limit: int = 2)

Source from the content-addressed store, hash-verified

3303
3304 def anchor_list(*buckets: str, limit: int = 2) -> List[str]:
3305 anchors: List[str] = []
3306 for bucket in buckets:
3307 for match in matches.get(bucket) or []:
3308 anchors.append(_format_evidence_anchor(match))
3309 return _unique_preserve_order(anchors)[:limit]
3310
3311 return {
3312 "one_sentence_summary": anchor_list("method", "results", limit=2),
3313 "research_background": anchor_list("background", limit=2),

Callers 1

Calls 3

_format_evidence_anchorFunction · 0.85
_unique_preserve_orderFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected