Skip to content

sdk==0.1.40

Choose a tag to compare

@github-actions github-actions released this 28 Nov 06:54
ee8653d

langgraph-sdk 0.1.40

Summary of Changes

  • Added natural language search capabilities to the store with the new query parameter in search_items and relevance scoring in results (PR #2567)
  • Added ability to control search indexing behavior when storing items with new index parameter in put_item (PR #2567)
  • Fixed documentation example for client.crons.create() by removing misleading await keyword (PR #2567)

Detailed Changes

Store API

  • Added index parameter to both sync and async put_item methods, allowing users to control search indexing behavior:
    • None (default): Use default indexing behavior
    • False: Disable indexing for this item
    • list[str]: Specify field paths to index
  • Added query parameter to both sync and async search_items methods, enabling natural language search capabilities
  • Added new SearchItem class that extends Item with an optional score field for relevance scoring in search results
  • Updated SearchItemsResponse to return list[SearchItem] instead of list[Item], providing access to relevance scores when using natural language queries

Documentation

  • Fixed misleading example in documentation for client.crons.create() by removing incorrect await keyword