()
| 170 | } |
| 171 | |
| 172 | const edit = () => |
| 173 | $.tool.call({ |
| 174 | tool: 'Edit', |
| 175 | file_path: '/work/app.ts', |
| 176 | old_string: '1', |
| 177 | new_string: '2', |
| 178 | }) |
| 179 | |
| 180 | on('tool.call', () => ({ result: 'done' })) |
| 181 | on('turn.complete', ($, e) => ({ text: e.answer })) |