# thread_exists

> **Function** in `deepagents_cli`

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

Check if a thread exists in checkpoints.

## Signature

```python
thread_exists(
    thread_id: str,
) -> bool
```

## Returns

`bool`

True if thread exists, False otherwise.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/829909166606f8a9d9571b00da725845bad08da7/libs/cli/deepagents_cli/sessions.py#L951)