Skip to content

0.2.36

Choose a tag to compare

@github-actions github-actions released this 14 Oct 19:46

langgraph 0.2.36

Summary of Changes

  • Added support for remote LangGraph deployments with new RemoteGraph class to interact with hosted graphs via LangGraph API (#2078, #2085)
  • Introduced PregelProtocol, defining a standard interface for interacting with graphs (#2078)
  • Enhanced task handling by adding a result field to PregelTask to support returning task results (#2078)
  • Fixed several bugs in internal Pregel engine, improving interrupt handling and state management

Detailed Changes

langgraph.pregel.protocol.PregelProtocol

  • Added new protocol class that defines the standard interface for interacting with graphs
  • Includes methods for state management, graph visualization, subgraph traversal, and execution
  • Provides both synchronous and asynchronous versions of methods for flexibility

langgraph.pregel.remote.RemoteGraph

  • Added new class for interacting with remote LangGraph deployments
  • Implements the PregelProtocol interface
  • Supports all operations available on local graphs: invoking, streaming, state inspection, visualization
  • Provides configuration options for connecting to LangGraph API with authentication

langgraph.types.PregelTask

  • Added result field to store task execution results
  • Enables tasks to return structured data that can be accessed in state snapshots
  • Improves the ability to track and analyze task outcomes

langgraph.pregel.Pregel

  • Improved copy() method to handle None values correctly
  • Fixed interrupt handling in the internal Pregel engine
  • Enhanced state snapshot creation to include output information
  • Improved error handling during state updates