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:
David Duong
2024-10-07 17:52:27 +02:00
committed by GitHub
+2
View File
@@ -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,
},
},
);