@langchain/langgraph-sdk 0.0.14-rc.0 → 0.0.15
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 +10 -5
- package/dist/client.js +10 -5
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +5 -0
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -466,6 +466,7 @@ class RunsClient extends BaseClient {
|
|
|
466
466
|
multitask_strategy: payload?.multitaskStrategy,
|
|
467
467
|
on_completion: payload?.onCompletion,
|
|
468
468
|
on_disconnect: payload?.onDisconnect,
|
|
469
|
+
after_seconds: payload?.afterSeconds,
|
|
469
470
|
};
|
|
470
471
|
const endpoint = threadId == null ? `/runs/stream` : `/threads/${threadId}/runs/stream`;
|
|
471
472
|
const response = await this.asyncCaller.fetch(...this.prepareFetchOptions(endpoint, {
|
|
@@ -525,6 +526,7 @@ class RunsClient extends BaseClient {
|
|
|
525
526
|
webhook: payload?.webhook,
|
|
526
527
|
checkpoint_id: payload?.checkpointId,
|
|
527
528
|
multitask_strategy: payload?.multitaskStrategy,
|
|
529
|
+
after_seconds: payload?.afterSeconds,
|
|
528
530
|
};
|
|
529
531
|
return this.fetch(`/threads/${threadId}/runs`, {
|
|
530
532
|
method: "POST",
|
|
@@ -570,6 +572,7 @@ class RunsClient extends BaseClient {
|
|
|
570
572
|
multitask_strategy: payload?.multitaskStrategy,
|
|
571
573
|
on_completion: payload?.onCompletion,
|
|
572
574
|
on_disconnect: payload?.onDisconnect,
|
|
575
|
+
after_seconds: payload?.afterSeconds,
|
|
573
576
|
};
|
|
574
577
|
const endpoint = threadId == null ? `/runs/wait` : `/threads/${threadId}/runs/wait`;
|
|
575
578
|
return this.fetch(endpoint, {
|
|
@@ -732,11 +735,13 @@ class StoreClient extends BaseClient {
|
|
|
732
735
|
const response = await this.fetch("/store/items", {
|
|
733
736
|
params: { namespace: namespace.join("."), key },
|
|
734
737
|
});
|
|
735
|
-
return
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
738
|
+
return response
|
|
739
|
+
? {
|
|
740
|
+
...response,
|
|
741
|
+
createdAt: response.created_at,
|
|
742
|
+
updatedAt: response.updated_at,
|
|
743
|
+
}
|
|
744
|
+
: null;
|
|
740
745
|
}
|
|
741
746
|
/**
|
|
742
747
|
* Delete an item.
|
package/dist/client.js
CHANGED
|
@@ -460,6 +460,7 @@ export class RunsClient extends BaseClient {
|
|
|
460
460
|
multitask_strategy: payload?.multitaskStrategy,
|
|
461
461
|
on_completion: payload?.onCompletion,
|
|
462
462
|
on_disconnect: payload?.onDisconnect,
|
|
463
|
+
after_seconds: payload?.afterSeconds,
|
|
463
464
|
};
|
|
464
465
|
const endpoint = threadId == null ? `/runs/stream` : `/threads/${threadId}/runs/stream`;
|
|
465
466
|
const response = await this.asyncCaller.fetch(...this.prepareFetchOptions(endpoint, {
|
|
@@ -519,6 +520,7 @@ export class RunsClient extends BaseClient {
|
|
|
519
520
|
webhook: payload?.webhook,
|
|
520
521
|
checkpoint_id: payload?.checkpointId,
|
|
521
522
|
multitask_strategy: payload?.multitaskStrategy,
|
|
523
|
+
after_seconds: payload?.afterSeconds,
|
|
522
524
|
};
|
|
523
525
|
return this.fetch(`/threads/${threadId}/runs`, {
|
|
524
526
|
method: "POST",
|
|
@@ -564,6 +566,7 @@ export class RunsClient extends BaseClient {
|
|
|
564
566
|
multitask_strategy: payload?.multitaskStrategy,
|
|
565
567
|
on_completion: payload?.onCompletion,
|
|
566
568
|
on_disconnect: payload?.onDisconnect,
|
|
569
|
+
after_seconds: payload?.afterSeconds,
|
|
567
570
|
};
|
|
568
571
|
const endpoint = threadId == null ? `/runs/wait` : `/threads/${threadId}/runs/wait`;
|
|
569
572
|
return this.fetch(endpoint, {
|
|
@@ -725,11 +728,13 @@ export class StoreClient extends BaseClient {
|
|
|
725
728
|
const response = await this.fetch("/store/items", {
|
|
726
729
|
params: { namespace: namespace.join("."), key },
|
|
727
730
|
});
|
|
728
|
-
return
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
731
|
+
return response
|
|
732
|
+
? {
|
|
733
|
+
...response,
|
|
734
|
+
createdAt: response.created_at,
|
|
735
|
+
updatedAt: response.updated_at,
|
|
736
|
+
}
|
|
737
|
+
: null;
|
|
733
738
|
}
|
|
734
739
|
/**
|
|
735
740
|
* Delete an item.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Client } from "./client.js";
|
|
2
|
-
export type { Assistant, AssistantVersion, AssistantGraph, Config, DefaultValues, GraphSchema, Metadata, Run, Thread, ThreadState, Cron, } from "./schema.js";
|
|
2
|
+
export type { Assistant, AssistantVersion, AssistantGraph, Config, DefaultValues, GraphSchema, Metadata, Run, Thread, ThreadState, Cron, Checkpoint, } from "./schema.js";
|
|
3
3
|
export type { OnConflictBehavior } from "./types.js";
|
package/dist/types.d.ts
CHANGED
|
@@ -63,6 +63,11 @@ interface RunsInvokePayload {
|
|
|
63
63
|
* - "continue": Continue the run.
|
|
64
64
|
*/
|
|
65
65
|
onDisconnect?: DisconnectMode;
|
|
66
|
+
/**
|
|
67
|
+
* The number of seconds to wait before starting the run.
|
|
68
|
+
* Use to schedule future runs.
|
|
69
|
+
*/
|
|
70
|
+
afterSeconds?: number;
|
|
66
71
|
}
|
|
67
72
|
export interface RunsStreamPayload extends RunsInvokePayload {
|
|
68
73
|
/**
|