# RootModel

> **Class** in `langsmith`

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

Used as a placeholder to easily convert runtime types to a Pydantic format
to provide validation.

For example:
```py
validated = RootModel[int](__root__="5").__root__
# validated: 5
```

## Signature

```python
RootModel()
```

## Extends

- `GenericModel`
- `Generic[_T]`

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/a39745c67839496a98e5e846122664d8070c8dca/python/langsmith/_openapi_client/_models.py#L853)