Skip to content

Commit

Permalink
Merge pull request #2029 from langchain-ai/dqbd/js-get-history-checkp…
Browse files Browse the repository at this point in the history
…oint

feat(sdk-js): add `checkpoint` arg in `getHistory`
  • Loading branch information
dqbd authored Oct 7, 2024
2 parents b42a31f + 05f645b commit b5138cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/sdk-js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>[]> {
Expand All @@ -622,6 +623,7 @@ export class ThreadsClient extends BaseClient {
limit: options?.limit ?? 10,
before: options?.before,
metadata: options?.metadata,
checkpoint: options?.checkpoint,
},
},
);
Expand Down

0 comments on commit b5138cd

Please sign in to comment.