Skip to content

0.2.16

Choose a tag to compare

@github-actions github-actions released this 01 Sep 19:22
a937754

langgraph 0.2.16

Summary of Changes

  • Improved subgraph detection in nested graphs, allowing visualization to work correctly for more complex graph structures

Detailed Changes

langgraph.graph.graph.Graph

  • Enhanced the get_graph method to more efficiently handle nested subgraphs when the xray parameter is used
  • Pre-computed subgraphs at the beginning of the method instead of dynamically fetching them during edge creation, resulting in more accurate graph visualization for complex nested structures

langgraph.pregel.Pregel

  • Significantly improved the get_subgraphs method to detect Pregel instances in more complex configurations
  • Added support for discovering nested Pregel instances inside:
    • RunnableSequence steps
    • RunnableLambda dependencies
    • RunnableCallable function nonlocals
  • The improved detection allows for better visualization of complex graphs with deeply nested components