@langchain/langgraph-sdk 0.0.14 → 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 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, {
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, {
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.19",