@langchain/langgraph-sdk 0.0.16 → 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 +3 -0
- package/dist/client.js +3 -0
- package/dist/types.d.ts +5 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -462,6 +462,7 @@ class RunsClient extends BaseClient {
|
|
|
462
462
|
assistant_id: assistantId,
|
|
463
463
|
interrupt_before: payload?.interruptBefore,
|
|
464
464
|
interrupt_after: payload?.interruptAfter,
|
|
465
|
+
checkpoint: payload?.checkpoint,
|
|
465
466
|
checkpoint_id: payload?.checkpointId,
|
|
466
467
|
webhook: payload?.webhook,
|
|
467
468
|
multitask_strategy: payload?.multitaskStrategy,
|
|
@@ -525,6 +526,7 @@ class RunsClient extends BaseClient {
|
|
|
525
526
|
interrupt_before: payload?.interruptBefore,
|
|
526
527
|
interrupt_after: payload?.interruptAfter,
|
|
527
528
|
webhook: payload?.webhook,
|
|
529
|
+
checkpoint: payload?.checkpoint,
|
|
528
530
|
checkpoint_id: payload?.checkpointId,
|
|
529
531
|
multitask_strategy: payload?.multitaskStrategy,
|
|
530
532
|
after_seconds: payload?.afterSeconds,
|
|
@@ -568,6 +570,7 @@ class RunsClient extends BaseClient {
|
|
|
568
570
|
assistant_id: assistantId,
|
|
569
571
|
interrupt_before: payload?.interruptBefore,
|
|
570
572
|
interrupt_after: payload?.interruptAfter,
|
|
573
|
+
checkpoint: payload?.checkpoint,
|
|
571
574
|
checkpoint_id: payload?.checkpointId,
|
|
572
575
|
webhook: payload?.webhook,
|
|
573
576
|
multitask_strategy: payload?.multitaskStrategy,
|
package/dist/client.js
CHANGED
|
@@ -456,6 +456,7 @@ export class RunsClient extends BaseClient {
|
|
|
456
456
|
assistant_id: assistantId,
|
|
457
457
|
interrupt_before: payload?.interruptBefore,
|
|
458
458
|
interrupt_after: payload?.interruptAfter,
|
|
459
|
+
checkpoint: payload?.checkpoint,
|
|
459
460
|
checkpoint_id: payload?.checkpointId,
|
|
460
461
|
webhook: payload?.webhook,
|
|
461
462
|
multitask_strategy: payload?.multitaskStrategy,
|
|
@@ -519,6 +520,7 @@ export class RunsClient extends BaseClient {
|
|
|
519
520
|
interrupt_before: payload?.interruptBefore,
|
|
520
521
|
interrupt_after: payload?.interruptAfter,
|
|
521
522
|
webhook: payload?.webhook,
|
|
523
|
+
checkpoint: payload?.checkpoint,
|
|
522
524
|
checkpoint_id: payload?.checkpointId,
|
|
523
525
|
multitask_strategy: payload?.multitaskStrategy,
|
|
524
526
|
after_seconds: payload?.afterSeconds,
|
|
@@ -562,6 +564,7 @@ export class RunsClient extends BaseClient {
|
|
|
562
564
|
assistant_id: assistantId,
|
|
563
565
|
interrupt_before: payload?.interruptBefore,
|
|
564
566
|
interrupt_after: payload?.interruptAfter,
|
|
567
|
+
checkpoint: payload?.checkpoint,
|
|
565
568
|
checkpoint_id: payload?.checkpointId,
|
|
566
569
|
webhook: payload?.webhook,
|
|
567
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
|
*/
|