MCPcopy Create free account
hub / github.com/OpenBMB/ChatDev / _split_lines

Function _split_lines

functions/function_calling/file.py:840–844  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

838
839
840def _split_lines(text: str) -> tuple[List[str], bool]:
841 if not text:
842 return [], False
843 has_trailing = text.endswith(("\r\n", "\n", "\r"))
844 return text.splitlines(), has_trailing
845
846
847def _describe_segment_line_offsets(full_text: str, start_index: int, snippet: str) -> Dict[str, Any]:

Callers 1

apply_text_editsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected