[PR #3278] [MERGED] feat: add dynamic model selection guidance to deep agents models page #3337

Closed
opened 2026-06-05 18:22:46 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3278
Author: @npentrel
Created: 3/24/2026
Status: Merged
Merged: 3/26/2026
Merged by: @npentrel

Base: mainHead: open-swe/198d766a-3899-5e52-24ab-c611c05e2cd1


📝 Commits (2)

  • 7bed671 Add "Select a model at runtime" section to Deep Agents models page with middleware-based dynamic model selection examples for Python and TypeScript
  • 86a3fdd update

📊 Changes

1 file changed (+79 additions, -0 deletions)

View changed files

📝 src/oss/deepagents/models.mdx (+79 -0)

📄 Description

Description

Adds a "Select a model at runtime" section to the Deep Agents models page, addressing the need for guidance on dynamically selecting models at runtime (e.g., via a model selector dropdown in a client UI). The section shows how to use wrap_model_call middleware with runtime context to swap models per invocation without rebuilding the agent, with examples for both Python and TypeScript.

Resolves DOC-914

Test Plan

  • Verify the new section renders correctly in preview deployment
  • Verify internal links to middleware and dynamic model docs resolve correctly

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/3278 **Author:** [@npentrel](https://github.com/npentrel) **Created:** 3/24/2026 **Status:** ✅ Merged **Merged:** 3/26/2026 **Merged by:** [@npentrel](https://github.com/npentrel) **Base:** `main` ← **Head:** `open-swe/198d766a-3899-5e52-24ab-c611c05e2cd1` --- ### 📝 Commits (2) - [`7bed671`](https://github.com/langchain-ai/docs/commit/7bed6712ec194013f8f85f0c4d139d50e908229d) Add "Select a model at runtime" section to Deep Agents models page with middleware-based dynamic model selection examples for Python and TypeScript - [`86a3fdd`](https://github.com/langchain-ai/docs/commit/86a3fdd409ff0d72f6faace1c8327d8c690b480d) update ### 📊 Changes **1 file changed** (+79 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/deepagents/models.mdx` (+79 -0) </details> ### 📄 Description ## Description Adds a "Select a model at runtime" section to the Deep Agents models page, addressing the need for guidance on dynamically selecting models at runtime (e.g., via a model selector dropdown in a client UI). The section shows how to use `wrap_model_call` middleware with runtime context to swap models per invocation without rebuilding the agent, with examples for both Python and TypeScript. Resolves DOC-914 ## Test Plan - [ ] Verify the new section renders correctly in preview deployment - [ ] Verify internal links to middleware and dynamic model docs resolve correctly --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:22:46 -04:00
yindo closed this issue 2026-06-05 18:22:46 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3337