pypi langgraph-sdk 0.1.8

latest releases: 0.3.14, 0.3.13, 0.3.12...
2 years ago

langgraph 0.1.8

Summary of Changes

  • Added support for attaching metadata to nodes in graphs, which can be visualized in graph representations (#990)
  • Fixed docstring for astream method to match stream method, with complete examples for different stream modes (#994)
  • Changed default stream_mode reference to use self.stream_mode instead of hardcoded value (#994)
  • Updated minimum required version of langchain-core to 0.2.15

Detailed Changes

langgraph.graph.graph.NodeSpec

  • Added new class to store a runnable along with optional metadata for graph nodes

langgraph.graph.graph.Graph

  • Modified add_node method to accept an optional metadata parameter
  • Changed internal node storage to use NodeSpec instances instead of raw runnables
  • Updated all relevant methods to work with the new node structure

langgraph.graph.graph.CompiledGraph

  • Updated attach_node and related methods to handle NodeSpec instances
  • Modified get_graph to include node metadata in visualizations

langgraph.pregel.Pregel

  • Updated docstring for stream method to reference self.stream_mode as the default
  • Added comprehensive docstring for astream method with examples for all stream modes ("values", "updates", "debug")
  • Fixed import example in docstring to use correct path for constants

langgraph.pregel.read.PregelNode

  • Added support for metadata parameter in __init__ method
  • Metadata is now propagated to the node's configuration

Don't miss a new langgraph-sdk release

NewReleases is sending notifications on new releases.