Skip to content

Conversation

saeedseyfi
Copy link

Description: Adding modify_model_request to public exports of langchain.agents.middleware.types. The middleware is referenced in docs.

Issue: Fixes import warning: 'modify_model_request' is not declared in __all__

Dependencies: None

The modify_model_request decorator function was missing from the __all__
export list in langchain.agents.middleware.types, causing import errors
when trying to import it directly.

This commit adds "modify_model_request" to the __all__ list to make
it available for public import.
Copy link

vercel bot commented Sep 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
langchain Ignored Ignored Preview Sep 26, 2025 8:31pm

@github-actions github-actions bot added langchain Related to the package `langchain` v1 Issue specific to LangChain 1.0 labels Sep 26, 2025
@saeedseyfi saeedseyfi marked this pull request as ready for review September 26, 2025 20:33
@saeedseyfi saeedseyfi changed the title fix(langchain): export modify_model_request in middleware types __all__ fix(langchain_v1): export modify_model_request in middleware types __all__ Sep 26, 2025
@sydney-runkle
Copy link
Collaborator

Done on master, thank you!!!

@saeedseyfi saeedseyfi deleted the fix-middleware-types-exports branch October 6, 2025 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
langchain Related to the package `langchain` v1 Issue specific to LangChain 1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants