fix: threads search sorting defaults (#4365)

Removes default from https://github.com/langchain-ai/langgraph/pull/4362
This commit is contained in:
lc-arjun
2025-04-21 20:49:16 -04:00
committed by GitHub
parent 12ad47e4e8
commit 7486adabdf
4 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@langchain/langgraph-sdk",
"version": "0.0.69",
"version": "0.0.70",
"description": "Client library for interacting with the LangGraph API",
"type": "module",
"packageManager": "yarn@1.22.19",
+1 -1
View File
@@ -621,7 +621,7 @@ export class ThreadsClient<
/**
* Sort by.
*/
sortBy?: "id" | "status" | "created_at" | "updated_at";
sortBy?: "thread_id" | "status" | "created_at" | "updated_at";
/**
* Sort order.
* Must be one of 'asc' or 'desc'.
+6 -2
View File
@@ -1043,8 +1043,10 @@ class ThreadsClient:
status: Optional[ThreadStatus] = None,
limit: int = 10,
offset: int = 0,
sort_by: Literal["id", "status", "created_at", "updated_at"] = "created_at",
sort_order: Literal["asc", "desc"] = "asc",
sort_by: Optional[
Literal["thread_id", "status", "created_at", "updated_at"]
] = None,
sort_order: Optional[Literal["asc", "desc"]] = None,
headers: Optional[dict[str, str]] = None,
) -> list[Thread]:
"""Search for threads.
@@ -1056,6 +1058,8 @@ class ThreadsClient:
Must be one of 'idle', 'busy', 'interrupted' or 'error'.
limit: Limit on number of threads to return.
offset: Offset in threads table to start search from.
sort_by: Sort by field.
sort_order: Sort order.
headers: Optional custom headers to include with the request.
Returns:
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langgraph-sdk"
version = "0.1.62"
version = "0.1.63"
description = "SDK for interacting with LangGraph API"
authors = []
license = "MIT"