mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-29 11:19:54 +02:00
feat(sdk-js): add bulkUpdateState method
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user