validate_model_capabilities(
model: BaseChatModel,
model_name: str,
) -> None| Name | Type | Description |
|---|---|---|
model* | BaseChatModel | The instantiated model to validate. |
model_name* | str | Model name for error/warning messages. |
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.
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.