@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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @langchain/langgraph-api
2
2
 
3
+ ## 0.0.71
4
+
5
+ ### Patch Changes
6
+
7
+ - f5865ac: Update API spec to match python api
8
+ - @langchain/langgraph-ui@0.0.71
9
+
3
10
  ## 0.0.70
4
11
 
5
12
  ### Patch Changes
@@ -39,7 +39,14 @@ api.post("/threads/search", zValidator("json", schemas.ThreadSearchRequest), asy
39
39
  total = item.total;
40
40
  }
41
41
  }
42
- c.res.headers.set("X-Pagination-Total", total.toString());
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) => {
@@ -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
  });
@@ -27,8 +27,8 @@ export interface RunnableConfig {
27
27
  metadata?: LangGraphRunnableConfig["metadata"];
28
28
  }
29
29
  export interface Assistant {
30
- name: string | undefined;
31
- description: string | undefined;
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 | undefined;
50
- description: string | undefined;
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.70",
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.70",
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",