# EditFileApprovalWidget

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/widgets/tool_widgets/EditFileApprovalWidget)

Approval widget for edit_file - shows clean diff with colors.

## Signature

```python
EditFileApprovalWidget(
    self,
    data: dict[str, Any],
)
```

## Extends

- `ToolApprovalWidget`

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-cli/widgets/tool_widgets/EditFileApprovalWidget/compose)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a9e6e4f7ad7fe161dd9affc3d74bb19784aca70b/libs/cli/deepagents_cli/widgets/tool_widgets.py#L167)