Commit e910513
committed
feat(tools): Add batch file operations support
Implement comprehensive batch operations for fs_read and fs_write tools:
- Add operations-based structure to fs_read with multiple operation types
- Implement batch processing for fs_write to handle multiple files and edits
- Add BatchReadResult and BatchWriteResult for consistent response formats
- Standardize tool summary display with improved parameter handling
- Add comprehensive test coverage for all new functionality
- Optimize performance by reducing separate tool calls for multiple files
- Improve error handling and reporting for batch operations
This feature significantly improves performance and usability when working with
multiple files by reducing the number of separate tool calls needed.
🤖 Assisted by [Amazon Q Developer](https://aws.amazon.com/q/developer)1 parent 0a4530a commit e910513
File tree
7 files changed
+4196
-787
lines changed- crates/chat-cli/src/cli/chat/tools
- rfcs
7 files changed
+4196
-787
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 29 | | |
34 | 30 | | |
35 | 31 | | |
| |||
39 | 35 | | |
40 | 36 | | |
41 | 37 | | |
| 38 | + | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
| |||
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
128 | | - | |
| 125 | + | |
129 | 126 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 127 | + | |
145 | 128 | | |
146 | 129 | | |
147 | 130 | | |
| |||
0 commit comments