Skip to content

sdk==0.1.36

Choose a tag to compare

@github-actions github-actions released this 14 Nov 01:10

langgraph-sdk 0.1.36

Summary of Changes

  • Added support for Command functionality, enabling direct node interaction and state manipulation during runs (#2284)
  • Enhanced run cancellation with new rollback option via action parameter (#2284)
  • Added "messages-tuple" as a new stream mode option
  • Improved parameter documentation for assistant version management (#2221)
  • Clarified metadata handling and made thread API documentation more consistent (#2225)
  • Removed "running" from RunStatus literals, streamlining the status tracking system

Detailed Changes

Client Run Methods

  • Added command parameter to stream(), create(), and wait() methods, allowing direct control over graph execution without requiring input
  • Enhanced the cancel() method with a new action parameter that supports "interrupt" (default) or "rollback" modes to control cancellation behavior (#2284)

Thread State Management

  • Improved documentation for update_state() to clarify that values are used to update the state (#2225)
  • Enhanced get_state() documentation to clarify the subgraphs parameter behavior (#2225)
  • Updated get_history() parameter descriptions to be more precise about filtering and retrieval options (#2225)

Assistant and Thread Management

  • Clarified that metadata parameters merge with existing metadata rather than replacing it (#2225)
  • Improved get_versions() documentation to correctly describe all parameters (#2221)
  • Enhanced search() documentation to clarify that it filters threads based on metadata, values, and status (#2225)

Schema Updates

  • Added CancelAction type to support enhanced run cancellation (#2284)
  • Added new Command type definition with send, update, and resume operations
  • Added Send typed dictionary to support direct node interaction
  • Added "messages-tuple" to StreamMode literals
  • Fixed description of input_schema in GraphSchema to correctly indicate it's for graph input (#2225)