From 5104e31e35b5af64a1fca5dfeb69eaa550bd54ae Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Mon, 17 Mar 2025 18:14:33 +0100 Subject: [PATCH] feat(sdk-js): add bulkUpdateState method --- libs/sdk-js/src/client.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/sdk-js/src/client.ts b/libs/sdk-js/src/client.ts index 00f340204..ede19852f 100644 --- a/libs/sdk-js/src/client.ts +++ b/libs/sdk-js/src/client.ts @@ -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, }, });