Skip to content

sdk==0.1.32

Choose a tag to compare

@github-actions github-actions released this 01 Oct 08:21
dd88ac6

langgraph-sdk 0.1.32

Summary of Changes

  • Added new store API for key-value storage with namespaces (#1834)
  • Exposed synchronous client get_sync_client in module exports (#1834)
  • Improved HTTP client with JSON support for DELETE requests (#1834)
  • Added new TypedDicts for storage operations (#1834)
  • Refactored internal JSON handling for better code organization (#1834)

Detailed Changes

Store API

  • Added new StoreClient and SyncStoreClient classes for async and sync operations with methods:
    • put_item: Store or update an item in a namespace
    • get_item: Retrieve a single item from a namespace
    • delete_item: Delete an item from a namespace
    • search_items: Search for items within a namespace prefix with filtering
    • list_namespaces: List available namespaces with prefix/suffix filtering

Schema Updates

  • Added Item TypedDict for representing stored items with namespace, key, value, and timestamps
  • Added ListNamespaceResponse TypedDict for namespace listing operations
  • Added SearchItemsResponse TypedDict for search operations
  • Moved StreamPart to a proper NamedTuple in schema definitions
  • Added output_schema field to GraphSchema TypedDict

Client Improvements

  • Updated HttpClient and SyncHttpClient to handle JSON payload in DELETE requests
  • Added store property to LangGraphClient and SyncLangGraphClient
  • Improved API key handling with unified helper functions
  • Added get_sync_client to module exports for easier access to synchronous client