# strip_not_given

> **Function** in `langsmith`

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

Remove all top-level keys where their values are instances of `NotGiven`

## Signature

```python
strip_not_given(
    obj: object | None,
) -> object
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/_utils/_utils.py#L317)