# is_basemodel

> **Function** in `langsmith`

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

Returns whether or not the given type is either a `BaseModel` or a union of `BaseModel`

## Signature

```python
is_basemodel(
    type_: type,
) -> bool
```

---

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