enabling pre_model_hook from being passed in it is available in create_react but isn't being given as a param for deep agents or being passed downwards #58

Closed
opened 2026-02-16 08:19:40 -05:00 by yindo · 1 comment
Owner

Originally created by @mcp97 on GitHub (Sep 28, 2025).

Originally created by @mcp97 on GitHub (Sep 28, 2025).
yindo closed this issue 2026-02-16 08:19:40 -05:00
Author
Owner

@nhuang-lc commented on GitHub (Sep 29, 2025):

Hey! This is intentional :) All pre-model hook functionality can be moved into your own custom defined middleware, specifically, before_model: https://docs.langchain.com/oss/python/langchain/middleware#before-model.

Feel free to re-open this issue if you have any questions about moving this over!

@nhuang-lc commented on GitHub (Sep 29, 2025): Hey! This is intentional :) All pre-model hook functionality can be moved into your own custom defined middleware, specifically, before_model: https://docs.langchain.com/oss/python/langchain/middleware#before-model. Feel free to re-open this issue if you have any questions about moving this over!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagents#58