@langchain/langgraph-cli 0.0.0-preview.10 → 0.0.0-preview.11
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/schemas.mjs +16 -2
- package/dist/storage/ops.mjs +5 -2
- package/package.json +1 -1
package/dist/schemas.mjs
CHANGED
|
@@ -193,8 +193,22 @@ export const RunCreate = z
|
|
|
193
193
|
.optional(),
|
|
194
194
|
stream_mode: z
|
|
195
195
|
.union([
|
|
196
|
-
z.array(z.enum([
|
|
197
|
-
|
|
196
|
+
z.array(z.enum([
|
|
197
|
+
"values",
|
|
198
|
+
"messages",
|
|
199
|
+
"messages-tuple",
|
|
200
|
+
"updates",
|
|
201
|
+
"events",
|
|
202
|
+
"debug",
|
|
203
|
+
])),
|
|
204
|
+
z.enum([
|
|
205
|
+
"values",
|
|
206
|
+
"messages",
|
|
207
|
+
"messages-tuple",
|
|
208
|
+
"updates",
|
|
209
|
+
"events",
|
|
210
|
+
"debug",
|
|
211
|
+
]),
|
|
198
212
|
])
|
|
199
213
|
.optional(),
|
|
200
214
|
stream_subgraphs: z.boolean().optional(),
|
package/dist/storage/ops.mjs
CHANGED
|
@@ -543,8 +543,11 @@ export class Runs {
|
|
|
543
543
|
static async put(runId, assistantId, kwargs, options) {
|
|
544
544
|
return conn.with(async (STORE) => {
|
|
545
545
|
const assistant = STORE.assistants[assistantId];
|
|
546
|
-
if (!assistant)
|
|
547
|
-
|
|
546
|
+
if (!assistant) {
|
|
547
|
+
throw new HTTPException(404, {
|
|
548
|
+
message: `No assistant found for "${assistantId}". Make sure the assistant ID is for a valid assistant or a valid graph ID.`,
|
|
549
|
+
});
|
|
550
|
+
}
|
|
548
551
|
const ifNotExists = options?.ifNotExists ?? "reject";
|
|
549
552
|
const multitaskStrategy = options?.multitaskStrategy ?? "reject";
|
|
550
553
|
const afterSeconds = options?.afterSeconds ?? 0;
|