Skip to content

Conversation

@BenHavis
Copy link
Contributor

@BenHavis BenHavis commented Dec 4, 2025

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.

Adds a migration section explaining how older injection helpers (InjectedState, InjectedStore, get_runtime, etc.) map to the unified ToolRuntime API.
@BenHavis BenHavis requested a review from lnhsingh as a code owner December 4, 2025 16:09
@github-actions github-actions bot added langchain For docs changes to LangChain oss labels Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

langchain For docs changes to LangChain oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant