# max_attempts

> **Attribute** in `langgraph`

📖 [View in docs](https://reference.langchain.com/python/langgraph/types/RetryPolicy/max_attempts)

Maximum number of attempts to make before giving up, including the first.

## Signature

```python
max_attempts: int = 3
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/70dd64065bffaa3b6ab61a33f1f020fb54db8efa/libs/langgraph/langgraph/types.py#L439)