@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 +1 -0
- package/dist/client.d.ts +6 -1
- package/dist/client.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/schema.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
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
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 {
|