Skip to content

@langchain/langgraph@1.7.5

Choose a tag to compare

@github-actions github-actions released this 17 Nov 00:23
· 7 commits to main since this release
e58f0c6

Patch Changes

  • #3295 5d41764 Thanks @eliornl! - With a zod state schema, node updates and run input are validated with the cached partial schema instead of a new zod schema per update, which zod had to compile every time. A 50-step run on a 30-field zod state is 1.65x faster.

  • #3297 0ccd9a2 Thanks @eliornl! - The Pregel loop finds DeltaChannel and UntrackedValue channels once per run instead of scanning every channel on each task and step. A 1,000-node chain runs 1.37x faster.

  • #3294 a770874 Thanks @eliornl! - messagesStateReducer does less work per update on a long history: it rules out message chunks with a native prototype check first, looks up only the ids the update touches, and skips the removal pass when nothing is removed. A call on 2,000 messages is 4x faster.

  • #3296 0994aa8 Thanks @eliornl! - The runner keeps a step's running tasks in a Map. Listing them took longer with every task, which made wide Send fan-outs quadratic: 500 parallel tasks now run 1.4x faster.

  • #3293 b382028 Thanks @eliornl! - LangGraph's own writers and branch runners inside each node no longer enter an async context. Entering one made @langchain/core build a LangSmith run tree on every call, even with tracing off, so graphs whose nodes do little work run up to 1.75x faster. Node functions, edge functions and tools keep their context.

  • Updated dependencies [a4a8cb4, 74c6edd, 62e40b9, cfa7a37, feb9832, fd10c3a, 6033cc7, abea7e8, a9dc990, 6d8d5fd, 4cef0cc, 7eb96bc, 6aa450d, 09e4351, b2bc8eb, 82a7d07, dd0c346, 6cf515f, 99b9dde, e337917, 77bf3db]:

    • @langchain/langgraph-checkpoint@1.2.3
    • @langchain/langgraph-sdk@1.17.0