[PR #6518] docs(langgraph): update old imports in docs tutorial notebooks #5089

Closed
opened 2026-02-20 17:51:12 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6518

State: closed
Merged: No


Description: Updated outdated imports across 10 tutorial notebooks in the documentation to reflect current LangGraph API patterns. This ensures that users following the tutorials will have working examples with the latest
import statements.

  • Changes:
    • replaced from langchain import hub with from langsmith import Client
    • replaced hub.pull with client.pull_prompt
    • cleaned up references to old types like FunctionMessage -> ToolMessage
  • Issue: #6437
  • Dependencies: NA

Files Changed

  • docs/docs/tutorials/llm-compiler/LLMCompiler.ipynb
  • docs/docs/tutorials/rag/langgraph_adaptive_rag.ipynb
  • docs/docs/tutorials/rag/langgraph_crag.ipynb
  • docs/docs/tutorials/rag/langgraph_crag_local.ipynb
  • docs/docs/tutorials/rag/langgraph_self_rag.ipynb
  • docs/docs/tutorials/rag/langgraph_self_rag_local.ipynb
  • docs/docs/tutorials/self-discover/self-discover.ipynb
  • docs/docs/tutorials/tnt-llm/tnt-llm.ipynb
  • docs/docs/tutorials/usaco/usaco.ipynb
  • docs/docs/tutorials/web-navigation/web_voyager.ipynb

Additional guidelines:

  • Make sure optional dependencies are imported within a function.
  • Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests.
  • Most PRs should not touch more than one package.
  • Changes should be backwards compatible.
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6518 **State:** closed **Merged:** No --- **Description:** Updated outdated imports across 10 tutorial notebooks in the documentation to reflect current LangGraph API patterns. This ensures that users following the tutorials will have working examples with the latest import statements. - Changes: - replaced `from langchain import hub` with `from langsmith import Client` - replaced `hub.pull` with `client.pull_prompt` - cleaned up references to old types like `FunctionMessage` -> `ToolMessage` - **Issue:** #6437 - **Dependencies:** NA ## Files Changed - docs/docs/tutorials/llm-compiler/LLMCompiler.ipynb - docs/docs/tutorials/rag/langgraph_adaptive_rag.ipynb - docs/docs/tutorials/rag/langgraph_crag.ipynb - docs/docs/tutorials/rag/langgraph_crag_local.ipynb - docs/docs/tutorials/rag/langgraph_self_rag.ipynb - docs/docs/tutorials/rag/langgraph_self_rag_local.ipynb - docs/docs/tutorials/self-discover/self-discover.ipynb - docs/docs/tutorials/tnt-llm/tnt-llm.ipynb - docs/docs/tutorials/usaco/usaco.ipynb - docs/docs/tutorials/web-navigation/web_voyager.ipynb Additional guidelines: - Make sure optional dependencies are imported within a function. - Please do not add dependencies to `pyproject.toml` files (even optional ones) unless they are **required** for unit tests. - Most PRs should not touch more than one package. - Changes should be backwards compatible.
yindo added the pull-request label 2026-02-20 17:51:12 -05:00
yindo closed this issue 2026-02-20 17:51:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#5089