Skip to content

sdk==0.1.33

Choose a tag to compare

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

langgraph-sdk 0.1.33

Summary of Changes

  • Added comprehensive docstrings throughout the entire SDK, improving developer experience and documentation (PR #1974)
  • Enhanced update_state methods to return checkpoint information instead of None (PR #2050)
  • Added support for wildcard node interruptions with the ability to pass "*" to interrupt all nodes (PR #2053)
  • Expanded type support in update_state to accept sequences of dictionaries in addition to single dictionaries (PR #2054)
  • Added "custom" option to StreamMode, providing more flexibility in stream handling (PR #2051)

Detailed Changes

Client Classes Documentation

  • Added detailed docstrings for all client classes including examples of usage (PR #1974)
  • Improved method descriptions for HTTP requests (changed "Make a" to "Send a") (PR #1974)
  • Added return type descriptions and examples to function docstrings (PR #1974)

Schema Types

  • Added explanatory docstrings to all schema types, improving their usability (PR #1974)
  • Enhanced documentation for literal types with detailed descriptions of each option (PR #1974)
  • Added "custom" option to StreamMode literal type (PR #2051)
  • Added new ThreadUpdateStateResponse TypedDict to better represent state update results (PR #2050)

ThreadsClient and SyncThreadsClient

  • Changed update_state to return ThreadUpdateStateResponse with checkpoint information instead of None (PR #2050)
  • Changed values parameter type in update_state from dict to Optional[Union[dict, Sequence[dict]]], allowing passing multiple dictionaries (PR #2054)
  • Added detailed examples for the update_state method showing the new return value format (PR #2050)

RunsClient and CronClient

  • Changed type of interrupt_before and interrupt_after parameters from Optional[list[str]] to Optional[Union[All, list[str]]] in various methods (PR #2053)
  • This enhancement allows using the wildcard "*" to interrupt all nodes instead of listing them individually (PR #2053)