# ModelResult

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/config/ModelResult)

Result of creating a chat model, bundling the model with its metadata.

This separates model creation from settings mutation so callers can decide
when to commit the metadata to global settings.

## Signature

```python
ModelResult(
    self,
    model: BaseChatModel,
    model_name: str,
    provider: str,
    context_limit: int | None = None,
    unsupported_modalities: frozenset[str] = frozenset(),
)
```

## Constructors

```python
__init__(
    self,
    model: BaseChatModel,
    model_name: str,
    provider: str,
    context_limit: int | None = None,
    unsupported_modalities: frozenset[str] = frozenset(),
) -> None
```

| Name | Type |
|------|------|
| `model` | `BaseChatModel` |
| `model_name` | `str` |
| `provider` | `str` |
| `context_limit` | `int \| None` |
| `unsupported_modalities` | `frozenset[str]` |


## Properties

- `model`
- `model_name`
- `provider`
- `context_limit`
- `unsupported_modalities`

## Methods

- [`apply_to_settings()`](https://reference.langchain.com/python/deepagents-cli/config/ModelResult/apply_to_settings)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/1ae053f347679e58562d2b81eb6d6e6e9bbf0b07/libs/cli/deepagents_cli/config.py#L2070)