Skip to content

0.2.27

Choose a tag to compare

@github-actions github-actions released this 24 Sep 17:49

langgraph 0.2.27

Summary of Changes

  • Improved efficiency of subgraph operations with a new namespace filtering parameter in get_subgraphs method
  • Added filtering capability to exclude subgraphs that have disabled checkpointing
  • Broadened the type hint for store values to be more flexible

Detailed Changes

langgraph.pregel.Pregel

  • Added new optional namespace parameter to get_subgraphs and aget_subgraphs methods to filter subgraphs by name
  • Added logic to exclude subgraphs that have disabled checkpointing (checkpointer is False) from being considered
  • Optimized get_state, aget_state, get_state_history, aget_state_history, update_state, and aupdate_state methods to use the new namespace filtering capability, improving performance when working with nested subgraphs
  • Improved handling of recursive subgraph queries when using namespaces

BaseStore

  • Changed the type definition of store values (V) from dict[str, Any] to Any, allowing for more flexible value storage in stores