langgraph-sdk 0.1.65
Summary of Changes
- Added sorting capabilities for assistants search with new parameters
sort_byandsort_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_byandsort_order(PR #4484) - The
sort_byparameter accepts values from the newAssistantSortBytype: "assistant_id", "graph_id", "name", "created_at", "updated_at" - The
sort_orderparameter accepts values from the newSortOrdertype: "asc" or "desc"
Client.search (Threads)
- Refactored the type hints for
sort_byandsort_orderparameters to use the new type aliasesThreadSortByandSortOrderinstead 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)