# FileOpMetrics

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/file_ops/FileOpMetrics)

Line and byte level metrics for a file operation.

## Signature

```python
FileOpMetrics(
    self,
    lines_read: int = 0,
    start_line: int | None = None,
    end_line: int | None = None,
    lines_written: int = 0,
    lines_added: int = 0,
    lines_removed: int = 0,
    bytes_written: int = 0,
)
```

## Constructors

```python
__init__(
    self,
    lines_read: int = 0,
    start_line: int | None = None,
    end_line: int | None = None,
    lines_written: int = 0,
    lines_added: int = 0,
    lines_removed: int = 0,
    bytes_written: int = 0,
) -> None
```

| Name | Type |
|------|------|
| `lines_read` | `int` |
| `start_line` | `int \| None` |
| `end_line` | `int \| None` |
| `lines_written` | `int` |
| `lines_added` | `int` |
| `lines_removed` | `int` |
| `bytes_written` | `int` |


## Properties

- `lines_read`
- `start_line`
- `end_line`
- `lines_written`
- `lines_added`
- `lines_removed`
- `bytes_written`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/88c2b5cb874dc1d093acf54d2a967ba6e085c99b/libs/cli/deepagents_cli/file_ops.py#L95)