# DiffMessage

> **Class** in `deepagents_cli`

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

Widget displaying a diff with syntax highlighting.

## Signature

```python
DiffMessage(
    self,
    diff_content: str,
    file_path: str = '',
    **kwargs: Any = {},
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `diff_content` | `str` | Yes | The unified diff content |
| `file_path` | `str` | No | Path to the file being modified (default: `''`) |
| `**kwargs` | `Any` | No | Additional arguments passed to parent (default: `{}`) |

## Extends

- `_TimestampClickMixin`
- `Static`

## Constructors

```python
__init__(
    self,
    diff_content: str,
    file_path: str = '',
    **kwargs: Any = {},
) -> None
```

| Name | Type |
|------|------|
| `diff_content` | `str` |
| `file_path` | `str` |


## Properties

- `DEFAULT_CSS`

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-cli/widgets/messages/DiffMessage/compose)
- [`on_mount()`](https://reference.langchain.com/python/deepagents-cli/widgets/messages/DiffMessage/on_mount)

---

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