[PR #1737] [MERGED] Add ToolRuntime migration section to tools documentation #1808

Closed
opened 2026-02-17 17:22:45 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1737
Author: @BenHavis
Created: 12/4/2025
Status: Merged
Merged: 5/28/2026
Merged by: @npentrel

Base: mainHead: docs/add-toolruntime-migration-section


📝 Commits (3)

  • 078ce25 Add ToolRuntime migration section to tools documentation
  • fb9a812 update
  • b4f8986 Apply suggestion from @npentrel

📊 Changes

1 file changed (+37 additions, -6 deletions)

View changed files

📝 src/oss/langchain/tools.mdx (+37 -6)

📄 Description

Adds a migration section explaining how older injection helpers (InjectedState, InjectedStore, get_runtime, etc.) map to the unified ToolRuntime API.

Overview

This PR updates the Tools documentation by adding a migration section that explains how legacy injection helpers map to the new ToolRuntime API. It includes before/after examples and clarifies why the unified approach should be used going forward.

Type of change

Type: Update existing documentation

Related issues/PRs

Not applicable

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed

(Internal team members only / optional): Create a preview deployment as necessary using the Create Preview Branch workflow

Additional notes

Adds clarity around transitioning to ToolRuntime and consolidates several previously undocumented patterns into one unified section.


🔄 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/1737 **Author:** [@BenHavis](https://github.com/BenHavis) **Created:** 12/4/2025 **Status:** ✅ Merged **Merged:** 5/28/2026 **Merged by:** [@npentrel](https://github.com/npentrel) **Base:** `main` ← **Head:** `docs/add-toolruntime-migration-section` --- ### 📝 Commits (3) - [`078ce25`](https://github.com/langchain-ai/docs/commit/078ce2507b62b5cc704f63708acbf6e2af153886) Add ToolRuntime migration section to tools documentation - [`fb9a812`](https://github.com/langchain-ai/docs/commit/fb9a8124cf8803bd2b05109d2bbabf48f4f07eba) update - [`b4f8986`](https://github.com/langchain-ai/docs/commit/b4f898624ca3d64a279047e2fe622db883791e8d) Apply suggestion from @npentrel ### 📊 Changes **1 file changed** (+37 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/tools.mdx` (+37 -6) </details> ### 📄 Description Adds a migration section explaining how older injection helpers (InjectedState, InjectedStore, get_runtime, etc.) map to the unified ToolRuntime API. ## Overview This PR updates the Tools documentation by adding a migration section that explains how legacy injection helpers map to the new ToolRuntime API. It includes before/after examples and clarifies why the unified approach should be used going forward. ## Type of change Type: Update existing documentation ## Related issues/PRs Not applicable ## Checklist <!-- Put an 'x' in all boxes that apply --> - [X] I have read the [contributing guidelines](README.md) - [X] I have tested my changes locally using `docs dev` - [X] All code examples have been tested and work correctly - [X] I have used **root relative** paths for internal links - [ ] I have updated navigation in `src/docs.json` if needed (Internal team members only / optional): Create a preview deployment as necessary using the [Create Preview Branch workflow](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml) ## Additional notes Adds clarity around transitioning to ToolRuntime and consolidates several previously undocumented patterns into one unified section. --- <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-02-17 17:22:45 -05:00
yindo changed title from [PR #1737] Add `ToolRuntime` migration section to tools documentation to [PR #1737] [MERGED] Add `ToolRuntime` migration section to tools documentation 2026-06-05 18:15:01 -04:00
yindo closed this issue 2026-06-05 18:15:01 -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#1808