pypi langgraph-sdk 0.3.6

latest releases: 0.3.15, 0.3.14, 0.3.13...
3 months ago

langgraph 0.3.6

Summary of Changes

  • Improved type annotations for task decorator to better handle async functions (#3670)
  • Enhanced Branch functionality with input schema inference to better handle conditional edges (#2516)
  • Added support for input schema detection in branch paths for StateGraph (#2516)

Detailed Changes

langgraph.func.task

  • Improved type annotations to consistently prioritize async functions in Union types, making the API more predictable (#3670)

langgraph.graph.branch.Branch

  • Moved from graph.py to its own dedicated module for better organization (#2516)
  • Added input_schema field to support automatic schema inference (#2516)
  • Added factory method from_path that handles path_map conversion and optionally infers input schema (#2516)
  • Enhanced passthrough behavior to only merge inputs with state when no input schema is defined (#2516)

langgraph.graph.state.StateGraph

  • Added add_conditional_edges implementation that includes schema inference (#2516)
  • Updated branch handling to use inferred schema when available, improving type safety (#2516)

Don't miss a new langgraph-sdk release

NewReleases is sending notifications on new releases.