# build

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_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-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/_models.py#L530)