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

Function report_read

functions/function_calling/deep_research.py:238–251  ·  view source on GitHub ↗

Read the current content of the report.

(
    _context: Dict[str, Any] | None = None,
)

Source from the content-addressed store, hash-verified

236
237
238def report_read(
239 _context: Dict[str, Any] | None = None,
240) -> str:
241 """
242 Read the current content of the report.
243 """
244 ctx = FileToolContext(_context)
245 _, report_file = _get_files(ctx)
246 _, report_lock = _get_locks(ctx)
247
248 with FileLock(report_lock):
249 if not report_file.exists():
250 return "Report is empty."
251 return report_file.read_text(encoding="utf-8")
252
253
254def report_read_chapter(

Callers

nothing calls this directly

Calls 3

FileToolContextClass · 0.90
_get_filesFunction · 0.85
_get_locksFunction · 0.85

Tested by

no test coverage detected