Collect file operation metrics during a CLI interaction.
FileOpTracker(
self,
*,
assistant_id: str | None,
backend: BackendProtocol | None = None
)| Name | Type |
|---|---|
| assistant_id | str | None |
| backend | BackendProtocol | None |
Begin tracking a file operation.
Creates a record for the operation and, for write/edit operations, captures the file's content before modification.
Complete a file operation with the tool message result.
Mark operations matching tool_name and file_path as HIL-approved.