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

Function first_meaningful_line

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

Use only the leading content line so bot examples do not get reparsed as user input.

(text: Any)

Source from the content-addressed store, hash-verified

774
775
776def first_meaningful_line(text: Any) -> str:
777 """Use only the leading content line so bot examples do not get reparsed as user input."""
778 for raw_line in str(text or "").splitlines():
779 cleaned = raw_line.strip().strip("\"'")
780 if cleaned:
781 return cleaned
782 return ""
783
784
785def detect_explicit_command_intent(text: Any) -> Optional[Dict[str, Any]]:

Calls

no outgoing calls

Tested by

no test coverage detected