@langchain/langgraph-api 0.0.70 → 0.0.71
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/CHANGELOG.md +7 -0
- package/dist/api/threads.mjs +8 -1
- package/dist/storage/ops.mjs +2 -2
- package/dist/storage/types.d.mts +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/api/threads.mjs
CHANGED
|
@@ -39,7 +39,14 @@ api.post("/threads/search", zValidator("json", schemas.ThreadSearchRequest), asy
|
|
|
39
39
|
total = item.total;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
const nextOffset = (payload.offset ?? 0) + total;
|
|
43
|
+
if (total === payload.limit) {
|
|
44
|
+
c.res.headers.set("X-Pagination-Next", nextOffset.toString());
|
|
45
|
+
c.res.headers.set("X-Pagination-Total", (nextOffset + 1).toString());
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
c.res.headers.set("X-Pagination-Total", nextOffset.toString());
|
|
49
|
+
}
|
|
43
50
|
return jsonExtra(c, result);
|
|
44
51
|
});
|
|
45
52
|
api.post("/threads/count", zValidator("json", schemas.ThreadCountRequest), async (c) => {
|
package/dist/storage/ops.mjs
CHANGED
|
@@ -245,7 +245,7 @@ export class FileSystemAssistants {
|
|
|
245
245
|
graph_id: options.graph_id,
|
|
246
246
|
metadata: mutable.metadata ?? {},
|
|
247
247
|
name: options.name || options.graph_id,
|
|
248
|
-
description: options.description,
|
|
248
|
+
description: options.description ?? null,
|
|
249
249
|
};
|
|
250
250
|
STORE.assistant_versions.push({
|
|
251
251
|
assistant_id: assistant_id,
|
|
@@ -256,7 +256,7 @@ export class FileSystemAssistants {
|
|
|
256
256
|
metadata: mutable.metadata ?? {},
|
|
257
257
|
created_at: now,
|
|
258
258
|
name: options.name || options.graph_id,
|
|
259
|
-
description: options.description,
|
|
259
|
+
description: options.description ?? null,
|
|
260
260
|
});
|
|
261
261
|
return STORE.assistants[assistant_id];
|
|
262
262
|
});
|
package/dist/storage/types.d.mts
CHANGED
|
@@ -27,8 +27,8 @@ export interface RunnableConfig {
|
|
|
27
27
|
metadata?: LangGraphRunnableConfig["metadata"];
|
|
28
28
|
}
|
|
29
29
|
export interface Assistant {
|
|
30
|
-
name: string
|
|
31
|
-
description: string |
|
|
30
|
+
name: string;
|
|
31
|
+
description: string | null;
|
|
32
32
|
assistant_id: string;
|
|
33
33
|
graph_id: string;
|
|
34
34
|
created_at: Date;
|
|
@@ -46,8 +46,8 @@ export interface AssistantVersion {
|
|
|
46
46
|
context: unknown;
|
|
47
47
|
metadata: Metadata;
|
|
48
48
|
created_at: Date;
|
|
49
|
-
name: string
|
|
50
|
-
description: string |
|
|
49
|
+
name: string;
|
|
50
|
+
description: string | null;
|
|
51
51
|
}
|
|
52
52
|
export interface RunKwargs {
|
|
53
53
|
input?: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^18.19.0 || >=20.16.0"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@babel/code-frame": "^7.26.2",
|
|
65
65
|
"@hono/node-server": "^1.12.0",
|
|
66
66
|
"@hono/zod-validator": "^0.2.2",
|
|
67
|
-
"@langchain/langgraph-ui": "0.0.
|
|
67
|
+
"@langchain/langgraph-ui": "0.0.71",
|
|
68
68
|
"@types/json-schema": "^7.0.15",
|
|
69
69
|
"@typescript/vfs": "^1.6.0",
|
|
70
70
|
"dedent": "^1.5.3",
|