# close_session

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/client/close_session)

Close the session.

## Signature

```python
close_session(
    session: requests.Session,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `session` | `requests.Session` | Yes | The session to close. |

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/ce9e9e8973442b33e98ec3ce1b9c2dd3f58a43a7/python/langsmith/client.py#L511)