@langchain/langgraph-sdk 0.0.26 → 0.0.27
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/index.d.ts +1 -1
- package/dist/schema.d.ts +12 -6
- package/package.json +1 -1
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, ThreadTask, ThreadState, ThreadStatus, Cron, Checkpoint, } from "./schema.js";
|
|
2
|
+
export type { Assistant, AssistantVersion, AssistantGraph, Config, DefaultValues, GraphSchema, Metadata, Run, Thread, ThreadTask, ThreadState, ThreadStatus, Cron, Checkpoint, Interrupt, } from "./schema.js";
|
|
3
3
|
export type { OnConflictBehavior, Command } from "./types.js";
|
package/dist/schema.d.ts
CHANGED
|
@@ -100,6 +100,15 @@ export interface AssistantGraph {
|
|
|
100
100
|
conditional?: boolean;
|
|
101
101
|
}>;
|
|
102
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* An interrupt thrown inside a thread.
|
|
105
|
+
*/
|
|
106
|
+
export interface Interrupt {
|
|
107
|
+
value: unknown;
|
|
108
|
+
when: "during";
|
|
109
|
+
resumable: boolean;
|
|
110
|
+
ns?: string[];
|
|
111
|
+
}
|
|
103
112
|
export interface Thread<ValuesType = DefaultValues> {
|
|
104
113
|
/** The ID of the thread. */
|
|
105
114
|
thread_id: string;
|
|
@@ -113,6 +122,8 @@ export interface Thread<ValuesType = DefaultValues> {
|
|
|
113
122
|
status: ThreadStatus;
|
|
114
123
|
/** The current state of the thread. */
|
|
115
124
|
values: ValuesType;
|
|
125
|
+
/** Interrupts which were thrown in this thread */
|
|
126
|
+
interrupts: Record<string, Array<Interrupt>>;
|
|
116
127
|
}
|
|
117
128
|
export interface Cron {
|
|
118
129
|
/** The ID of the cron */
|
|
@@ -152,12 +163,7 @@ export interface ThreadTask {
|
|
|
152
163
|
name: string;
|
|
153
164
|
result?: unknown;
|
|
154
165
|
error: Optional<string>;
|
|
155
|
-
interrupts: Array<
|
|
156
|
-
value: unknown;
|
|
157
|
-
when: "during";
|
|
158
|
-
resumable: boolean;
|
|
159
|
-
ns?: string[];
|
|
160
|
-
}>;
|
|
166
|
+
interrupts: Array<Interrupt>;
|
|
161
167
|
checkpoint: Optional<Checkpoint>;
|
|
162
168
|
state: Optional<ThreadState>;
|
|
163
169
|
}
|