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
748
749def _first_non_empty(*values: Any) -> str:
750 for value in values:
751 text = _clean_text(value)
752 if text:
753 return text
754 return ""
755
756
757def _unique_preserve_order(items: List[str]) -> List[str]:

Callers 1

Calls 1

_clean_textFunction · 0.70

Tested by

no test coverage detected