mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-12 12:47:53 +02:00
Merge pull request #2029 from langchain-ai/dqbd/js-get-history-checkpoint
feat(sdk-js): add `checkpoint` arg in `getHistory`
This commit is contained in:
@@ -611,6 +611,7 @@ export class ThreadsClient extends BaseClient {
|
||||
options?: {
|
||||
limit?: number;
|
||||
before?: Config;
|
||||
checkpoint?: Partial<Omit<Checkpoint, "thread_id">>;
|
||||
metadata?: Metadata;
|
||||
},
|
||||
): Promise<ThreadState<ValuesType>[]> {
|
||||
@@ -622,6 +623,7 @@ export class ThreadsClient extends BaseClient {
|
||||
limit: options?.limit ?? 10,
|
||||
before: options?.before,
|
||||
metadata: options?.metadata,
|
||||
checkpoint: options?.checkpoint,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user