diff --git a/libs/sdk-js/src/client.ts b/libs/sdk-js/src/client.ts index 05a369191..c17e15ed5 100644 --- a/libs/sdk-js/src/client.ts +++ b/libs/sdk-js/src/client.ts @@ -674,6 +674,7 @@ export class RunsClient extends BaseClient { assistant_id: assistantId, interrupt_before: payload?.interruptBefore, interrupt_after: payload?.interruptAfter, + checkpoint: payload?.checkpoint, checkpoint_id: payload?.checkpointId, webhook: payload?.webhook, multitask_strategy: payload?.multitaskStrategy, @@ -756,6 +757,7 @@ export class RunsClient extends BaseClient { interrupt_before: payload?.interruptBefore, interrupt_after: payload?.interruptAfter, webhook: payload?.webhook, + checkpoint: payload?.checkpoint, checkpoint_id: payload?.checkpointId, multitask_strategy: payload?.multitaskStrategy, after_seconds: payload?.afterSeconds, @@ -822,6 +824,7 @@ export class RunsClient extends BaseClient { assistant_id: assistantId, interrupt_before: payload?.interruptBefore, interrupt_after: payload?.interruptAfter, + checkpoint: payload?.checkpoint, checkpoint_id: payload?.checkpointId, webhook: payload?.webhook, multitask_strategy: payload?.multitaskStrategy, diff --git a/libs/sdk-js/src/types.ts b/libs/sdk-js/src/types.ts index c3ca16ef0..044dd229c 100644 --- a/libs/sdk-js/src/types.ts +++ b/libs/sdk-js/src/types.ts @@ -1,4 +1,4 @@ -import { Config, Metadata } from "./schema.js"; +import { Checkpoint, Config, Metadata } from "./schema.js"; export type StreamMode = "values" | "messages" | "updates" | "events" | "debug"; export type MultitaskStrategy = "reject" | "interrupt" | "rollback" | "enqueue"; @@ -37,6 +37,11 @@ interface RunsInvokePayload { */ checkpointId?: string; + /** + * Checkpoint for when creating a new run. + */ + checkpoint?: Omit; + /** * Interrupt execution before entering these nodes. */