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

Function _format_plain_url

agents/reading-agent/main.py:938–942  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

936
937def _format_plain_url(url: str) -> str:
938 clean_url = _clean_text(url)
939 if clean_url.startswith("http://") or clean_url.startswith("https://"):
940 return clean_url
941 return clean_url or "暂无"
942
943
944def _get_first_url(paper: Dict[str, Any], *keys: str) -> str:
945 metadata = paper.get("metadata")

Callers 1

_build_resource_itemsFunction · 0.85

Calls 1

_clean_textFunction · 0.70

Tested by

no test coverage detected