@langchain/langgraph-sdk 0.0.21 → 0.0.22

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
@@ -375,6 +375,7 @@ class ThreadsClient extends BaseClient {
375
375
  metadata: query?.metadata ?? undefined,
376
376
  limit: query?.limit ?? 10,
377
377
  offset: query?.offset ?? 0,
378
+ status: query?.status,
378
379
  },
379
380
  });
380
381
  }
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Assistant, AssistantGraph, CancelAction, Config, DefaultValues, GraphSchema, Metadata, Run, Thread, ThreadState, Cron, AssistantVersion, Subgraphs, Checkpoint, SearchItemsResponse, ListNamespaceResponse, Item } from "./schema.js";
1
+ import { Assistant, AssistantGraph, CancelAction, Config, DefaultValues, GraphSchema, Metadata, Run, Thread, ThreadState, Cron, AssistantVersion, Subgraphs, Checkpoint, SearchItemsResponse, ListNamespaceResponse, Item, ThreadStatus } 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
  interface ClientConfig {
@@ -222,6 +222,11 @@ export declare class ThreadsClient extends BaseClient {
222
222
  * Offset to start from.
223
223
  */
224
224
  offset?: number;
225
+ /**
226
+ * Thread status to filter on.
227
+ * Must be one of 'idle', 'busy', 'interrupted' or 'error'.
228
+ */
229
+ status?: ThreadStatus;
225
230
  }): Promise<Thread[]>;
226
231
  /**
227
232
  * Get state for a thread.
package/dist/client.js CHANGED
@@ -370,6 +370,7 @@ export class ThreadsClient extends BaseClient {
370
370
  metadata: query?.metadata ?? undefined,
371
371
  limit: query?.limit ?? 10,
372
372
  offset: query?.offset ?? 0,
373
+ status: query?.status,
373
374
  },
374
375
  });
375
376
  }
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, Checkpoint, } from "./schema.js";
2
+ export type { Assistant, AssistantVersion, AssistantGraph, Config, DefaultValues, GraphSchema, Metadata, Run, Thread, ThreadState, ThreadStatus, Cron, Checkpoint, } from "./schema.js";
3
3
  export type { OnConflictBehavior } from "./types.js";
package/dist/schema.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { JSONSchema7 } from "json-schema";
2
2
  type Optional<T> = T | null | undefined;
3
3
  type RunStatus = "pending" | "running" | "error" | "success" | "timeout" | "interrupted";
4
- type ThreadStatus = "idle" | "busy" | "interrupted" | "error";
4
+ export type ThreadStatus = "idle" | "busy" | "interrupted" | "error";
5
5
  type MultitaskStrategy = "reject" | "interrupt" | "rollback" | "enqueue";
6
6
  export type CancelAction = "interrupt" | "rollback";
7
7
  export interface Config {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.19",