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.
validate_model_capabilities(
model: BaseChatModel,
model_name: str,
) -> NoneNote:
This validation is best-effort. Models without profiles will pass with a warning. Exits via sys.exit(1) if model profile explicitly indicates tool_calling=False.
| Name | Type | Description |
|---|---|---|
model* | BaseChatModel | The instantiated model to validate. |
model_name* | str | Model name for error/warning messages. |