pypi langgraph-cli 0.2.9

latest releases: 0.4.26, 0.4.25, 0.4.24...
12 months ago

langgraph 0.2.9

Summary of Changes

  • Refactored channel and managed value handling for better integration and performance
  • Improved architecture by reducing component coupling and centralizing management code
  • Enhanced error handling for interruptions to prevent unnecessary retries in task execution (PR #1413)

Detailed Changes

langgraph.pregel.retry.run_with_retry

  • Added special handling for GraphInterrupt exceptions to avoid retry attempts for intentional interruptions (PR #1413)
  • This applies to both synchronous and asynchronous versions of the retry function

langgraph.graph.state.StateGraph

  • Improved integration of managed values with channels in the compiled graph
  • Updated type annotations from ManagedValue to ManagedValueSpec for better precision
  • Enhanced channel handling to properly integrate managed values in the compilation process

langgraph.pregel.manager

  • New module that provides centralized managers handling both channels and managed values together
  • Replaced separate managers from different modules with unified implementations
  • Simplified the API for creating and managing channel contexts

langgraph.pregel.loop.PregelLoop

  • Restructured to remove direct graph dependencies for better encapsulation
  • Added property to store final output directly on the loop instance
  • Simplified execution flow and improved how tasks are processed

Don't miss a new langgraph-cli release

NewReleases is sending notifications on new releases.