GitHub Repo
LangChain Community Reports Tool Middleware Typing Defect; Custom Context May Be Flagged as Incompatible by Pylance
A LangChain community report dated October 5 describes a case in version 1.4.3 where a custom context type may not be inferred correctly when using the tool middleware decorator. The case currently shows a static type-checking failure, with no evidence that context data is lost at runtime.