Mark file as recently used without returning content.
(self, file_path: str)
| 117 | return None |
| 118 | |
| 119 | def touch(self, file_path: str): |
| 120 | """Mark file as recently used without returning content.""" |
| 121 | item = self._files.get(file_path) |
| 122 | if item: |
| 123 | item.last_used_at = int(time.time()) |
| 124 | item.last_used_turn = self._turn |
| 125 | item.access_count += 1 |
| 126 | |
| 127 | def remove(self, file_path: str): |
| 128 | """Remove a file from working memory.""" |