Skip to content

Commit 242cfbb

Browse files
authored
feat: add state_updated_at field to js sdk (#1972)
1 parent d066129 commit 242cfbb

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.changeset/strict-clubs-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@langchain/langgraph-sdk": major
3+
---
4+
5+
add 'state_updated_at' field to threads

libs/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@langchain/langgraph-sdk",
3-
"version": "1.6.2",
3+
"version": "1.6.3",
44
"description": "Client library for interacting with the LangGraph API",
55
"type": "module",
66
"repository": {

libs/sdk/src/schema.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ export interface Thread<ValuesType = DefaultValues, TInterruptValue = unknown> {
200200
/** The last time the thread was updated. */
201201
updated_at: string;
202202

203+
/** The last time the thread state was updated. */
204+
state_updated_at: string;
205+
203206
/** The thread metadata. */
204207
metadata: Metadata;
205208

@@ -378,7 +381,12 @@ export type AssistantSortBy =
378381
| "created_at"
379382
| "updated_at";
380383

381-
export type ThreadSortBy = "thread_id" | "status" | "created_at" | "updated_at";
384+
export type ThreadSortBy =
385+
| "thread_id"
386+
| "status"
387+
| "created_at"
388+
| "updated_at"
389+
| "state_updated_at";
382390

383391
export type CronSortBy =
384392
| "cron_id"
@@ -409,6 +417,7 @@ export type ThreadSelectField =
409417
| "thread_id"
410418
| "created_at"
411419
| "updated_at"
420+
| "state_updated_at"
412421
| "metadata"
413422
| "config"
414423
| "context"

0 commit comments

Comments
 (0)