Skip to content

sdk==0.1.29

Choose a tag to compare

@github-actions github-actions released this 26 Aug 22:30

langgraph-sdk 0.1.29

Summary of Changes

  • Added new options for run lifecycle management: on_disconnect to control behavior when clients disconnect, and on_completion to determine resource cleanup behavior
  • Added a new streaming method join_stream to receive real-time output from existing runs

Detailed Changes

Client API

  • Added new parameters to stream() method: on_disconnect to specify behavior when client disconnects (can be "cancel" or "continue") and on_completion to control resource cleanup after completion
  • Added on_completion parameter to create() method to control resource cleanup after run completion (can be "delete" or "keep")
  • Added on_disconnect and on_completion parameters to wait() method for consistent behavior control
  • Added new join_stream() method to stream output from an existing run in real-time without buffering previous output

Type Definitions

  • Added DisconnectMode type with options "cancel" or "continue" to specify behavior when clients disconnect
  • Added OnCompletionBehavior type with options "delete" or "keep" to control resource cleanup behavior after completion