@langchain/langgraph-sdk 0.0.73 → 0.0.74
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 +5 -0
- package/dist/client.js +5 -0
- package/dist/types.d.ts +4 -0
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -152,6 +152,7 @@ class CronsClient extends BaseClient {
|
|
|
152
152
|
webhook: payload?.webhook,
|
|
153
153
|
multitask_strategy: payload?.multitaskStrategy,
|
|
154
154
|
if_not_exists: payload?.ifNotExists,
|
|
155
|
+
checkpoint_during: payload?.checkpointDuring,
|
|
155
156
|
};
|
|
156
157
|
return this.fetch(`/threads/${threadId}/runs/crons`, {
|
|
157
158
|
method: "POST",
|
|
@@ -176,6 +177,7 @@ class CronsClient extends BaseClient {
|
|
|
176
177
|
webhook: payload?.webhook,
|
|
177
178
|
multitask_strategy: payload?.multitaskStrategy,
|
|
178
179
|
if_not_exists: payload?.ifNotExists,
|
|
180
|
+
checkpoint_during: payload?.checkpointDuring,
|
|
179
181
|
};
|
|
180
182
|
return this.fetch(`/runs/crons`, {
|
|
181
183
|
method: "POST",
|
|
@@ -545,6 +547,7 @@ class RunsClient extends BaseClient {
|
|
|
545
547
|
on_disconnect: payload?.onDisconnect,
|
|
546
548
|
after_seconds: payload?.afterSeconds,
|
|
547
549
|
if_not_exists: payload?.ifNotExists,
|
|
550
|
+
checkpoint_during: payload?.checkpointDuring,
|
|
548
551
|
};
|
|
549
552
|
const endpoint = threadId == null ? `/runs/stream` : `/threads/${threadId}/runs/stream`;
|
|
550
553
|
const response = await this.asyncCaller.fetch(...this.prepareFetchOptions(endpoint, {
|
|
@@ -583,6 +586,7 @@ class RunsClient extends BaseClient {
|
|
|
583
586
|
multitask_strategy: payload?.multitaskStrategy,
|
|
584
587
|
after_seconds: payload?.afterSeconds,
|
|
585
588
|
if_not_exists: payload?.ifNotExists,
|
|
589
|
+
checkpoint_during: payload?.checkpointDuring,
|
|
586
590
|
};
|
|
587
591
|
return this.fetch(`/threads/${threadId}/runs`, {
|
|
588
592
|
method: "POST",
|
|
@@ -632,6 +636,7 @@ class RunsClient extends BaseClient {
|
|
|
632
636
|
on_disconnect: payload?.onDisconnect,
|
|
633
637
|
after_seconds: payload?.afterSeconds,
|
|
634
638
|
if_not_exists: payload?.ifNotExists,
|
|
639
|
+
checkpoint_during: payload?.checkpointDuring,
|
|
635
640
|
};
|
|
636
641
|
const endpoint = threadId == null ? `/runs/wait` : `/threads/${threadId}/runs/wait`;
|
|
637
642
|
const response = await this.fetch(endpoint, {
|
package/dist/client.js
CHANGED
|
@@ -148,6 +148,7 @@ export class CronsClient extends BaseClient {
|
|
|
148
148
|
webhook: payload?.webhook,
|
|
149
149
|
multitask_strategy: payload?.multitaskStrategy,
|
|
150
150
|
if_not_exists: payload?.ifNotExists,
|
|
151
|
+
checkpoint_during: payload?.checkpointDuring,
|
|
151
152
|
};
|
|
152
153
|
return this.fetch(`/threads/${threadId}/runs/crons`, {
|
|
153
154
|
method: "POST",
|
|
@@ -172,6 +173,7 @@ export class CronsClient extends BaseClient {
|
|
|
172
173
|
webhook: payload?.webhook,
|
|
173
174
|
multitask_strategy: payload?.multitaskStrategy,
|
|
174
175
|
if_not_exists: payload?.ifNotExists,
|
|
176
|
+
checkpoint_during: payload?.checkpointDuring,
|
|
175
177
|
};
|
|
176
178
|
return this.fetch(`/runs/crons`, {
|
|
177
179
|
method: "POST",
|
|
@@ -538,6 +540,7 @@ export class RunsClient extends BaseClient {
|
|
|
538
540
|
on_disconnect: payload?.onDisconnect,
|
|
539
541
|
after_seconds: payload?.afterSeconds,
|
|
540
542
|
if_not_exists: payload?.ifNotExists,
|
|
543
|
+
checkpoint_during: payload?.checkpointDuring,
|
|
541
544
|
};
|
|
542
545
|
const endpoint = threadId == null ? `/runs/stream` : `/threads/${threadId}/runs/stream`;
|
|
543
546
|
const response = await this.asyncCaller.fetch(...this.prepareFetchOptions(endpoint, {
|
|
@@ -576,6 +579,7 @@ export class RunsClient extends BaseClient {
|
|
|
576
579
|
multitask_strategy: payload?.multitaskStrategy,
|
|
577
580
|
after_seconds: payload?.afterSeconds,
|
|
578
581
|
if_not_exists: payload?.ifNotExists,
|
|
582
|
+
checkpoint_during: payload?.checkpointDuring,
|
|
579
583
|
};
|
|
580
584
|
return this.fetch(`/threads/${threadId}/runs`, {
|
|
581
585
|
method: "POST",
|
|
@@ -625,6 +629,7 @@ export class RunsClient extends BaseClient {
|
|
|
625
629
|
on_disconnect: payload?.onDisconnect,
|
|
626
630
|
after_seconds: payload?.afterSeconds,
|
|
627
631
|
if_not_exists: payload?.ifNotExists,
|
|
632
|
+
checkpoint_during: payload?.checkpointDuring,
|
|
628
633
|
};
|
|
629
634
|
const endpoint = threadId == null ? `/runs/wait` : `/threads/${threadId}/runs/wait`;
|
|
630
635
|
const response = await this.fetch(endpoint, {
|
package/dist/types.d.ts
CHANGED
|
@@ -46,6 +46,10 @@ interface RunsInvokePayload {
|
|
|
46
46
|
* Checkpoint for when creating a new run.
|
|
47
47
|
*/
|
|
48
48
|
checkpoint?: Omit<Checkpoint, "thread_id">;
|
|
49
|
+
/**
|
|
50
|
+
* Whether to checkpoint during the run (or only at the end/interruption).
|
|
51
|
+
*/
|
|
52
|
+
checkpointDuring?: boolean;
|
|
49
53
|
/**
|
|
50
54
|
* Interrupt execution before entering these nodes.
|
|
51
55
|
*/
|