@langchain/langgraph-sdk 0.0.34 → 0.0.35

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Assistant, AssistantGraph, CancelAction, Config, DefaultValues, GraphSchema, Metadata, Run, RunStatus, Thread, ThreadState, Cron, AssistantVersion, Subgraphs, Checkpoint, SearchItemsResponse, ListNamespaceResponse, Item, ThreadStatus } from "./schema.js";
1
+ import { Assistant, AssistantGraph, CancelAction, Config, DefaultValues, GraphSchema, Metadata, Run, RunStatus, Thread, ThreadState, Cron, AssistantVersion, Subgraphs, Checkpoint, SearchItemsResponse, ListNamespaceResponse, Item, ThreadStatus, CronCreateResponse, CronCreateForThreadResponse } from "./schema.js";
2
2
  import { AsyncCaller, AsyncCallerParams } from "./utils/async_caller.js";
3
3
  import { RunsCreatePayload, RunsStreamPayload, RunsWaitPayload, StreamEvent, CronsCreatePayload, OnConflictBehavior } from "./types.js";
4
4
  /**
@@ -46,14 +46,14 @@ export declare class CronsClient extends BaseClient {
46
46
  * @param payload Payload for creating a cron job.
47
47
  * @returns The created background run.
48
48
  */
49
- createForThread(threadId: string, assistantId: string, payload?: CronsCreatePayload): Promise<Run>;
49
+ createForThread(threadId: string, assistantId: string, payload?: CronsCreatePayload): Promise<CronCreateForThreadResponse>;
50
50
  /**
51
51
  *
52
52
  * @param assistantId Assistant ID to use for this cron job.
53
53
  * @param payload Payload for creating a cron job.
54
54
  * @returns
55
55
  */
56
- create(assistantId: string, payload?: CronsCreatePayload): Promise<Run>;
56
+ create(assistantId: string, payload?: CronsCreatePayload): Promise<CronCreateResponse>;
57
57
  /**
58
58
  *
59
59
  * @param cronId Cron ID of Cron job to delete.
package/dist/schema.d.ts CHANGED
@@ -207,4 +207,20 @@ export interface SearchItem extends Item {
207
207
  export interface SearchItemsResponse {
208
208
  items: SearchItem[];
209
209
  }
210
+ export interface CronCreateResponse {
211
+ cron_id: string;
212
+ assistant_id: string;
213
+ thread_id: string | undefined;
214
+ user_id: string;
215
+ payload: Record<string, unknown>;
216
+ schedule: string;
217
+ next_run_date: string;
218
+ end_time: string | undefined;
219
+ created_at: string;
220
+ updated_at: string;
221
+ metadata: Metadata;
222
+ }
223
+ export interface CronCreateForThreadResponse extends Omit<CronCreateResponse, "thread_id"> {
224
+ thread_id: string;
225
+ }
210
226
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.19",