github langchain-ai/langgraph sdk==0.1.65

latest releases: 1.0.5, sdk==0.3.0, checkpointpostgres==3.0.2...
7 months ago

langgraph-sdk 0.1.65

Summary of Changes

  • Added sorting capabilities for assistants search with new parameters sort_by and sort_order (PR #4484)
  • Refactored sorting types into dedicated type aliases (AssistantSortBy, ThreadSortBy, SortOrder) for better code organization and reusability (PR #4484)

Detailed Changes

Client.search (Assistants)

  • Added support for sorting search results with new parameters sort_by and sort_order (PR #4484)
  • The sort_by parameter accepts values from the new AssistantSortBy type: "assistant_id", "graph_id", "name", "created_at", "updated_at"
  • The sort_order parameter accepts values from the new SortOrder type: "asc" or "desc"

Client.search (Threads)

  • Refactored the type hints for sort_by and sort_order parameters to use the new type aliases ThreadSortBy and SortOrder instead of inline Literals (PR #4484)
  • Functionality remains the same, but code is now more maintainable

New Type Aliases

  • Added AssistantSortBy: Literal type for assistant sorting fields ("assistant_id", "graph_id", "name", "created_at", "updated_at") (PR #4484)
  • Added ThreadSortBy: Literal type for thread sorting fields ("thread_id", "status", "created_at", "updated_at") (PR #4484)
  • Added SortOrder: Literal type for sort direction ("asc", "desc") (PR #4484)

Don't miss a new langgraph release

NewReleases is sending notifications on new releases.