MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / _save_report

Function _save_report

functions/function_calling/deep_research.py:178–184  ·  view source on GitHub ↗
(file_path: Path, lines: List[str])

Source from the content-addressed store, hash-verified

176
177
178def _save_report(file_path: Path, lines: List[str]) -> None:
179 file_path.parent.mkdir(parents=True, exist_ok=True)
180 # Ensure final newline
181 content = "\n".join(lines)
182 if content and not content.endswith("\n"):
183 content += "\n"
184 file_path.write_text(content, encoding="utf-8")
185
186
187def _parse_header(line: str) -> Tuple[int, str]:

Callers 5

report_create_chapterFunction · 0.85
report_rewrite_chapterFunction · 0.85
report_continue_chapterFunction · 0.85
report_reorder_chaptersFunction · 0.85
report_del_chapterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected