Supported models
Specify models inprovider:model format (for example, google_genai:gemini-3.1-pro-preview, openai:gpt-5.4, or anthropic:claude-sonnet-4-6). For valid provider strings, see the model_provider parameter of init_chat_model. For provider-specific configuration, see chat model integrations.
Suggested models
These models perform well on the Deep Agents eval suite, which tests basic agent operations. Passing these evals is necessary but not sufficient for strong performance on longer, more complex tasks.| Provider | Models |
|---|---|
gemini-3.1-pro-preview, gemini-3-flash-preview | |
| OpenAI | gpt-5.4, gpt-4o, gpt-5.4, o4-mini, gpt-5.2-codex, gpt-4o-mini, o3 |
| Anthropic | claude-opus-4-6, claude-opus-4-5, claude-sonnet-4-6, claude-sonnet-4, claude-sonnet-4-5, claude-haiku-4-5, claude-opus-4-1 |
| Open-weight | GLM-5, Kimi-K2.5, MiniMax-M2.5, qwen3.5-397B-A17B, devstral-2-123B |
Configure model parameters
Pass a model string tocreate_deep_agent in provider:model format, or pass a configured model instance for full control. Under the hood, model strings are resolved via init_chat_model.
To configure model-specific parameters, use init_chat_model or instantiate a provider model class directly:
Available parameters vary by provider. See the chat model integrations page for provider-specific configuration options.
Provider profiles
ProviderProfile is a public beta API and may be updated in future releases."openai:gpt-5.4" into a chat model, and shape how the client is built:
init_kwargs— default kwargs forwarded toinit_chat_modelpre_init— side effects to run before construction (for example, credential validation for a clearer error than the SDK would give)init_kwargs_factory— kwargs derived from runtime state (for example, headers pulled from environment variables)
"openai" for provider-wide defaults, or under a fully qualified provider:model key like "openai:gpt-5.4" for per-model overrides. Registrations are additive: re-registering under an existing key merges on top of the prior registration. init_kwargs dicts merge key-wise (your value wins on a shared key), pre_init callables chain (existing runs first, then the new one), and init_kwargs_factory callables chain with their outputs merged every time resolve_model runs.
ProviderProfile is only consulted when the harness constructs the model from a string spec. For harness behavior after model creation, see Harness profiles.
Ship a provider profile as a plugin
Ship a provider profile as a plugin
Distributable profiles can register themselves via The target resolves to a zero-arg callable that performs the registrations when
importlib.metadata entry points instead of requiring callers to run register_provider_profile by hand. Declare an entry point in the distribution’s own pyproject.toml under the deepagents.provider_profiles group:deepagents.profiles is imported:Select a model at runtime
If your application lets users choose a model (for example using a dropdown in the UI), use middleware to swap the model at runtime without rebuilding the agent. Pass the user’s model selection through runtime context, then use awrap_model_call middleware to override the model on each invocation using the @wrap_model_call decorator:
Learn more
- Models in LangChain: chat model features including tool calling, structured output, and multimodality
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

