@langchain/langgraph-sdk 0.0.3 → 0.0.4

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.d.mts CHANGED
@@ -136,6 +136,12 @@ export declare class ThreadsClient extends BaseClient {
136
136
  threadId?: string;
137
137
  ifExists?: OnConflictBehavior;
138
138
  }): Promise<Thread>;
139
+ /**
140
+ * Copy an existing thread
141
+ * @param threadId ID of the thread to be copied
142
+ * @returns Newly copied thread
143
+ */
144
+ copy(threadId: string): Promise<Thread>;
139
145
  /**
140
146
  * Update a thread.
141
147
  *
package/dist/client.mjs CHANGED
@@ -253,6 +253,16 @@ export class ThreadsClient extends BaseClient {
253
253
  },
254
254
  });
255
255
  }
256
+ /**
257
+ * Copy an existing thread
258
+ * @param threadId ID of the thread to be copied
259
+ * @returns Newly copied thread
260
+ */
261
+ async copy(threadId) {
262
+ return this.fetch(`/threads/${threadId}/copy`, {
263
+ method: "POST",
264
+ });
265
+ }
256
266
  /**
257
267
  * Update a thread.
258
268
  *
package/dist/schema.d.ts CHANGED
@@ -32,10 +32,15 @@ export interface GraphSchema {
32
32
  */
33
33
  graph_id: string;
34
34
  /**
35
- * The schema for the graph state.
35
+ * The schema for the input state.
36
36
  * Missing if unable to generate JSON schema from graph.
37
37
  */
38
38
  input_schema?: JSONSchema7;
39
+ /**
40
+ * The schema for the output state.
41
+ * Missing if unable to generate JSON schema from graph.
42
+ */
43
+ output_schema?: JSONSchema7;
39
44
  /**
40
45
  * The schema for the graph state.
41
46
  * Missing if unable to generate JSON schema from graph.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.19",