# ModelConfigError

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/model_config/ModelConfigError)

Raised when model configuration or creation fails.

## Signature

```python
ModelConfigError()
```

## Extends

- `Exception`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/3812967c84d90619848f3185f22470204fc88bd8/libs/code/deepagents_code/model_config.py#L143)