Resolve a model string to a BaseChatModel instance.
If model is already a BaseChatModel, returns it unchanged.
String models are resolved via init_chat_model, with OpenAI models
defaulting to the Responses API. See the create_deep_agent docstring for
details on how to customize this behavior.
resolve_model(
model: str | BaseChatModel,
) -> BaseChatModel| Name | Type | Description |
|---|---|---|
model* | str | BaseChatModel | Model name string or pre-configured model instance. |