# GrepMatch

> **Class** in `deepagents`

📖 [View in docs](https://reference.langchain.com/python/deepagents/backends/protocol/GrepMatch)

A single match from a grep search.

## Signature

```python
GrepMatch()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    path: str,
    line: int,
    text: str,
    context_before: NotRequired[list[ContextLine]],
    context_after: NotRequired[list[ContextLine]],
)
```

| Name | Type |
|------|------|
| `path` | `str` |
| `line` | `int` |
| `text` | `str` |
| `context_before` | `NotRequired[list[ContextLine]]` |
| `context_after` | `NotRequired[list[ContextLine]]` |


## Properties

- `path`
- `line`
- `text`
- `context_before`
- `context_after`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a6c06b029710d34035af6ae1faded093cc8f3073/libs/deepagents/deepagents/backends/protocol.py#L150)