Skip to content

Conversation

@mdrxy
Copy link
Member

@mdrxy mdrxy commented Nov 16, 2025

Introduces an automated system to detecting and manage incorrect imports from langchain_core in favor of using the re-exports from langchain.

  • Added check-import-mappings.yml workflow to periodically analyze the latest version of langchain_core, check for re-exports in langchain (and generate import_mappings.json), and automatically create PRs to update the mappings cache in this repo.
  • Added check_import_mappings.py to fetch latest package releases, introspect langchain public __init__ files, and generate a detailed mapping of re-exported members from langchain_core. Uses the previous local import_mappings.json
  • Added check-pr-imports.yml workflow to run on PRs, ensuring inbound contributions use langchain imports when available, and comment on PRs with specific guidance if issues are found.
    • Uses check_pr_imports.py to analyze PR diffs against the import mappings, detect incorrect langchain_core imports, and output suggested fixes for contributors.

@github-actions github-actions bot added python For content related to the Python version of LangChain projects docs-infra ci tests labels Nov 16, 2025
@github-actions
Copy link
Contributor

Mintlify preview ID generated: preview-mdrxyi-1763261349-1c07824

@github-actions
Copy link
Contributor

Mintlify preview ID generated: preview-mdrxyi-1763262755-71dcb2a

@github-actions
Copy link
Contributor

Mintlify preview ID generated: preview-mdrxyi-1763263038-d1e9709

@mdrxy mdrxy requested a review from eyurtsev November 16, 2025 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci docs-infra python For content related to the Python version of LangChain projects tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants