(path: str)
| 806 | |
| 807 | @function_tool(name_override="read_file") |
| 808 | async def read_file(path: str) -> str: |
| 809 | assert self.bound_session is not None |
| 810 | data = await self.bound_session.read(Path(path)) |
| 811 | return cast(bytes, data.read()).decode("utf-8") |
| 812 | |
| 813 | return [write_file, read_file] |
| 814 |
no test coverage detected