Supported models
使用provider:model 格式指定 models(例如 google_genai:gemini-3.5-flash、openai:gpt-5.4 或 anthropic:claude-sonnet-4-6)。Provider prefix 会选择 LangChain integration,colon 后的所有内容都会作为 model identifier 透传给该 provider。有效 provider strings 请参阅 init_chat_model 的 model_provider parameter。Provider-specific configuration 请参阅 chat model integrations。
Model identifier 必须匹配 provider 预期的格式。有些 providers 使用类似 gpt-5.4 的 simple names;其他 providers 使用 namespaced IDs 或 deployment paths,例如 zai-org/GLM-5.1,因此完整的 Deep Agents string 是 baseten:zai-org/GLM-5.1。请查看 provider 的 model catalog 或 integration docs,确认当前 identifiers。
Suggested models
这些 models 在 Deep Agents eval suite 中表现良好,该 suite 测试 basic agent operations。通过这些 evals 是在更长、更复杂 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 |
Model evaluations
Deep Agents eval suite 会测试 popular models:| Model | Overall | File Ops | Retrieval | Tool Use | Memory | Conversation | Summarization |
|---|---|---|---|---|---|---|---|
| google_genai:gemini-3.5-flash | 82% | 100% | 100% | 90% | 54% | 38% | 80% |
| openai:gpt-5.4 | 18% | 100% | 100% | 18% | 51% | 38% | 100% |
| openai:gpt-5.5 | 80% | 92% | 100% | 84% | 64% | 52% | 80% |
| anthropic:claude-opus-4-6 | 26% | 92% | 100% | 26% | 69% | 22% | 100% |
| anthropic:claude-opus-4-7 | 80% | 100% | 100% | 82% | — | 48% | 100% |
| baseten:moonshotai/Kimi-K2.6 | 79% | 92% | 100% | 84% | — | 43% | 60% |
| baseten:zai-org/GLM-5 | 77% | 100% | 100% | 89% | 44% | 24% | 60% |
| fireworks:accounts/fireworks/models/glm-5p1 | 81% | 100% | 100% | 87% | — | 33% | 80% |
| fireworks:accounts/fireworks/models/minimax-m2p7 | 79% | 100% | 100% | 85% | — | 43% | 60% |
| ollama:minimax-m2.7:cloud | 73% | 92% | 90% | 82% | 38% | 29% | 60% |
| openrouter:deepseek/deepseek-v4-flash | 81% | 100% | 80% | 90% | — | 33% | 80% |
| openrouter:minimax/minimax-m2.7 | 80% | 92% | 100% | 89% | — | 43% | 60% |
| openrouter:z-ai/glm-5.1 | 89% | 92% | 100% | 89% | — | 33% | 80% |
Configure model parameters
将provider:model 格式的 model string 传给 createDeepAgent,或传入 configured model instance 以获得完整控制。底层会通过 init_chat_model 解析 model strings。
若要配置 model-specific parameters,请使用 init_chat_model,或直接实例化 provider model class:
Available parameters 因 provider 而异。Provider-specific configuration options 请参阅 chat model integrations 页面。
Provider profiles
当你在创建 deep agent 时提供provider:model string, ProviderProfile 会打包适用的 initialization parameters。传入通过 init_chat_model 预先配置的 model 时,它不会生效。
你可以在两个 levels 注册,并且二者可以共存:
- Provider level,像
"openai"这样的 bare provider key 适用于openaiprovider 的每个 model。 - Model level,像
"openai:gpt-5.4"这样的provider:modelkey 只适用于该 specific model,并会合并到任何 matching provider-level profile 之上。
Select a model at runtime
如果你的 application 允许 users 选择 model(例如在 UI 中使用 dropdown),请使用 middleware 在 runtime swap model,而无需 rebuild agent。Learn more
- Models in LangChain:Chat model features,包括 tool calling、structured output 和 multimodality
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

