Read the current content of the report.
(
_context: Dict[str, Any] | None = None,
)
| 236 | |
| 237 | |
| 238 | def 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 | |
| 254 | def report_read_chapter( |
nothing calls this directly
no test coverage detected