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

Function merge_unique_message_sections

agents/master-coordinator/main.py:744–756  ·  view source on GitHub ↗

Join message sections once while preserving their original order.

(*sections: Any)

Source from the content-addressed store, hash-verified

742
743
744def merge_unique_message_sections(*sections: Any) -> str:
745 """Join message sections once while preserving their original order."""
746 merged: List[str] = []
747 seen: set[str] = set()
748
749 for section in sections:
750 text = str(section or "").strip()
751 if not text or text in seen:
752 continue
753 seen.add(text)
754 merged.append(text)
755
756 return "\n".join(merged)
757
758
759BOT_AUTHORED_PREFIXES = (

Callers 1

handle_profile_updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected