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

Function _first_non_empty

agents/reading-agent/main.py:749–754  ·  view source on GitHub ↗
(*values: Any)

Source from the content-addressed store, hash-verified

747
748def _first_non_empty(*values: Any) -> str:
749 for value in values:
750 text = _clean_text(value)
751 if text:
752 return text
753 return ""
754
755
756def _unique_preserve_order(items: List[str]) -> List[str]:
757 seen = set()

Callers 1

Calls 1

_clean_textFunction · 0.70

Tested by

no test coverage detected