langchain
8f6851c3 - fix(langchain_v1): keep state to relevant middlewares for tool/model call limits (#33493)

Commit
131 days ago
fix(langchain_v1): keep state to relevant middlewares for tool/model call limits (#33493) The one risk point that I can see here is that model + tool call counting now occurs in the `after_model` hook which introduces order dependency (what if you have HITL execute before this hook and we jump early to `model`, for example). This is something users can work around at the moment and we can document. We could also introduce a priority concept to middleware.
Author
Parents
Loading