# build

> **Function** in `langsmith`

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

Construct a BaseModel class without validation.

This is useful for cases where you need to instantiate a `BaseModel`
from an API response as this provides type-safe params which isn't supported
by helpers like `construct_type()`.

```py
build(MyModel, my_field_a="foo", my_field_b=123)
```

## Signature

```python
build(
    base_model_cls: Callable[P, _BaseModelT],
    *args: P.args = (),
    **kwargs: P.kwargs = {},
) -> _BaseModelT
```

---

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