pypi langgraph-cli 0.2.7

latest releases: 0.4.30, 0.4.29, 0.4.28...
14 months ago

langgraph 0.2.7

Summary of Changes

  • Added support for shared state across graph nodes with SharedValue class
  • Introduced storage system for persisting shared values
  • Enhanced managed values system with writable values support
  • Added ability to pass a store to StateGraph.compile() for persistent shared state

Detailed Changes

langgraph.constants.CONFIG_KEY_STORE

  • Added new constant CONFIG_KEY_STORE = "__pregel_store" for configuring storage backend

langgraph.graph.state.StateGraph

  • Added optional store parameter to compile() method to support shared state persistence
  • Fixed state management to properly handle writable managed values

langgraph.managed.base.WritableManagedValue

  • New abstract class that extends ManagedValue to support updating values
  • Adds update() and aupdate() methods for synchronous and asynchronous updates

langgraph.managed.base.is_readonly_managed_value, langgraph.managed.base.is_writable_managed_value

  • New utility functions to check if a managed value is read-only or writable

langgraph.managed.base.ChannelKeyPlaceholder, langgraph.managed.base.ChannelTypePlaceholder

  • New placeholder objects for dynamically inserting channel key and type information

langgraph.managed.shared_value.SharedValue

  • New implementation of WritableManagedValue for managing shared state
  • Provides a way to share state across different graph nodes
  • Supports scoped storage based on configuration
  • Uses underlying storage engine if available

langgraph.pregel.Pregel

  • Added new store attribute to configure persistent storage for shared values
  • Enhanced logic to handle shared values in task processing

langgraph.store.base.BaseStore

  • Abstract base class for storage engines
  • Defines interfaces for listing and updating stored values
  • Provides both synchronous and asynchronous methods

langgraph.store.memory.MemoryStore

  • Simple in-memory implementation of BaseStore
  • Stores values in a dictionary for easy access

langgraph.store.batch.AsyncBatchedStore

  • Implementation that batches async operations for better performance
  • Wraps another store and optimizes its operation pattern

Don't miss a new langgraph-cli release

NewReleases is sending notifications on new releases.