@langchain/langgraph-sdk 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.cjs +4 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +4 -0
- package/dist/types.d.ts +5 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -437,6 +437,7 @@ class ThreadsClient extends BaseClient {
|
|
|
437
437
|
limit: options?.limit ?? 10,
|
|
438
438
|
before: options?.before,
|
|
439
439
|
metadata: options?.metadata,
|
|
440
|
+
checkpoint: options?.checkpoint,
|
|
440
441
|
},
|
|
441
442
|
});
|
|
442
443
|
}
|
|
@@ -461,6 +462,7 @@ class RunsClient extends BaseClient {
|
|
|
461
462
|
assistant_id: assistantId,
|
|
462
463
|
interrupt_before: payload?.interruptBefore,
|
|
463
464
|
interrupt_after: payload?.interruptAfter,
|
|
465
|
+
checkpoint: payload?.checkpoint,
|
|
464
466
|
checkpoint_id: payload?.checkpointId,
|
|
465
467
|
webhook: payload?.webhook,
|
|
466
468
|
multitask_strategy: payload?.multitaskStrategy,
|
|
@@ -524,6 +526,7 @@ class RunsClient extends BaseClient {
|
|
|
524
526
|
interrupt_before: payload?.interruptBefore,
|
|
525
527
|
interrupt_after: payload?.interruptAfter,
|
|
526
528
|
webhook: payload?.webhook,
|
|
529
|
+
checkpoint: payload?.checkpoint,
|
|
527
530
|
checkpoint_id: payload?.checkpointId,
|
|
528
531
|
multitask_strategy: payload?.multitaskStrategy,
|
|
529
532
|
after_seconds: payload?.afterSeconds,
|
|
@@ -567,6 +570,7 @@ class RunsClient extends BaseClient {
|
|
|
567
570
|
assistant_id: assistantId,
|
|
568
571
|
interrupt_before: payload?.interruptBefore,
|
|
569
572
|
interrupt_after: payload?.interruptAfter,
|
|
573
|
+
checkpoint: payload?.checkpoint,
|
|
570
574
|
checkpoint_id: payload?.checkpointId,
|
|
571
575
|
webhook: payload?.webhook,
|
|
572
576
|
multitask_strategy: payload?.multitaskStrategy,
|
package/dist/client.d.ts
CHANGED
|
@@ -258,6 +258,7 @@ export declare class ThreadsClient extends BaseClient {
|
|
|
258
258
|
getHistory<ValuesType = DefaultValues>(threadId: string, options?: {
|
|
259
259
|
limit?: number;
|
|
260
260
|
before?: Config;
|
|
261
|
+
checkpoint?: Partial<Omit<Checkpoint, "thread_id">>;
|
|
261
262
|
metadata?: Metadata;
|
|
262
263
|
}): Promise<ThreadState<ValuesType>[]>;
|
|
263
264
|
}
|
package/dist/client.js
CHANGED
|
@@ -432,6 +432,7 @@ export class ThreadsClient extends BaseClient {
|
|
|
432
432
|
limit: options?.limit ?? 10,
|
|
433
433
|
before: options?.before,
|
|
434
434
|
metadata: options?.metadata,
|
|
435
|
+
checkpoint: options?.checkpoint,
|
|
435
436
|
},
|
|
436
437
|
});
|
|
437
438
|
}
|
|
@@ -455,6 +456,7 @@ export class RunsClient extends BaseClient {
|
|
|
455
456
|
assistant_id: assistantId,
|
|
456
457
|
interrupt_before: payload?.interruptBefore,
|
|
457
458
|
interrupt_after: payload?.interruptAfter,
|
|
459
|
+
checkpoint: payload?.checkpoint,
|
|
458
460
|
checkpoint_id: payload?.checkpointId,
|
|
459
461
|
webhook: payload?.webhook,
|
|
460
462
|
multitask_strategy: payload?.multitaskStrategy,
|
|
@@ -518,6 +520,7 @@ export class RunsClient extends BaseClient {
|
|
|
518
520
|
interrupt_before: payload?.interruptBefore,
|
|
519
521
|
interrupt_after: payload?.interruptAfter,
|
|
520
522
|
webhook: payload?.webhook,
|
|
523
|
+
checkpoint: payload?.checkpoint,
|
|
521
524
|
checkpoint_id: payload?.checkpointId,
|
|
522
525
|
multitask_strategy: payload?.multitaskStrategy,
|
|
523
526
|
after_seconds: payload?.afterSeconds,
|
|
@@ -561,6 +564,7 @@ export class RunsClient extends BaseClient {
|
|
|
561
564
|
assistant_id: assistantId,
|
|
562
565
|
interrupt_before: payload?.interruptBefore,
|
|
563
566
|
interrupt_after: payload?.interruptAfter,
|
|
567
|
+
checkpoint: payload?.checkpoint,
|
|
564
568
|
checkpoint_id: payload?.checkpointId,
|
|
565
569
|
webhook: payload?.webhook,
|
|
566
570
|
multitask_strategy: payload?.multitaskStrategy,
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Config, Metadata } from "./schema.js";
|
|
1
|
+
import { Checkpoint, Config, Metadata } from "./schema.js";
|
|
2
2
|
export type StreamMode = "values" | "messages" | "updates" | "events" | "debug";
|
|
3
3
|
export type MultitaskStrategy = "reject" | "interrupt" | "rollback" | "enqueue";
|
|
4
4
|
export type OnConflictBehavior = "raise" | "do_nothing";
|
|
@@ -22,6 +22,10 @@ interface RunsInvokePayload {
|
|
|
22
22
|
* Checkpoint ID for when creating a new run.
|
|
23
23
|
*/
|
|
24
24
|
checkpointId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Checkpoint for when creating a new run.
|
|
27
|
+
*/
|
|
28
|
+
checkpoint?: Omit<Checkpoint, "thread_id">;
|
|
25
29
|
/**
|
|
26
30
|
* Interrupt execution before entering these nodes.
|
|
27
31
|
*/
|