# validate_model_capabilities

> **Function** in `deepagents_cli`

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

Validate that the model has required capabilities for `deepagents`.

Checks the model's profile (if available) to ensure it supports tool calling, which
is required for agent functionality. Issues warnings for models without profiles or
with limited context windows.

## Signature

```python
validate_model_capabilities(
    model: BaseChatModel,
    model_name: str,
) -> None
```

## Description

**Note:**

This validation is best-effort. Models without profiles will pass with
a warning. Calls `sys.exit(1)` if the model's profile explicitly
indicates `tool_calling=False`.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `model` | `BaseChatModel` | Yes | The instantiated model to validate. |
| `model_name` | `str` | Yes | Model name for error/warning messages. |

---

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