@langchain/langgraph-sdk 0.0.31 → 0.0.33

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +5 -3
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -13,15 +13,17 @@ export interface Command {
13
13
  /**
14
14
  * An object to update the thread state with.
15
15
  */
16
- update?: Record<string, unknown>;
16
+ update?: Record<string, unknown> | [string, unknown][];
17
17
  /**
18
18
  * The value to return from an `interrupt` function call.
19
19
  */
20
20
  resume?: unknown;
21
21
  /**
22
- * A single, or array of `Send` commands to trigger nodes.
22
+ * Determine the next node to navigate to. Can be one of the following:
23
+ * - Name(s) of the node names to navigate to next.
24
+ * - `Send` command(s) to execute node(s) with provided input.
23
25
  */
24
- send?: Send | Send[];
26
+ goto?: Send | Send[] | string | string[];
25
27
  }
26
28
  interface RunsInvokePayload {
27
29
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.19",