mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 22:56:05 +00:00
This makes branching **much** more simple internally and helps greatly w/ type safety for users. It just allows for one signature on hooks instead of multiple. Opened after https://github.com/langchain-ai/langchain/pull/33164 ballooned more than expected, w/ branching for: * sync vs async * runtime vs no runtime (this is self imposed) **This also removes support for nodes w/o `runtime` in the signature.** We can always go back and add support for nodes w/o `runtime`. I think @christian-bromann's idea to re-export `runtime` from langchain's agents might make sense due to the abundance of imports here. Check out the value of the change based on this diff: https://github.com/langchain-ai/langchain/pull/33176