feat(sdk-js): add bulkUpdateState method

This commit is contained in:
Tat Dat Duong
2025-03-17 18:14:33 +01:00
parent 7ae4739630
commit 5104e31e35
+5 -1
View File
@@ -644,6 +644,7 @@ export class ThreadsClient<
async bulkUpdateState(
supersteps: Array<{ updates: Array<{ values: unknown; asNode: string }> }>,
options?: {
graphId?: string;
threadId?: string;
metadata?: Metadata;
ifExists?: OnConflictBehavior;
@@ -659,7 +660,10 @@ export class ThreadsClient<
})),
})),
thread_id: options?.threadId,
metadata: options?.metadata,
metadata: {
...options?.metadata,
graph_id: options?.graphId,
},
if_exists: options?.ifExists,
},
});