@langgraph-js/sdk 4.0.0 → 4.0.1

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.
@@ -45,7 +45,7 @@ export declare class ToolRenderData<I, D> {
45
45
  } | null;
46
46
  /** 发送恢复状态的数据 */
47
47
  sendResumeData(response: HumanInTheLoopDecision): void;
48
- get state(): "idle" | "done" | "loading";
48
+ get state(): "idle" | "interrupted" | "done" | "loading";
49
49
  get input(): I | null;
50
50
  get output(): string;
51
51
  getJSONOutput(): D;
@@ -54,7 +54,7 @@ export class ToolRenderData {
54
54
  return "done";
55
55
  }
56
56
  if (this.client.status === "interrupted" && humanInTheLoopData?.actionRequest) {
57
- return "done";
57
+ return "interrupted";
58
58
  }
59
59
  if (this.message.tool_input) {
60
60
  return "loading";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langgraph-js/sdk",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "The UI SDK for LangGraph - seamlessly integrate your AI agents with frontend interfaces",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -59,7 +59,7 @@ export class ToolRenderData<I, D> {
59
59
  return "done";
60
60
  }
61
61
  if (this.client.status === "interrupted" && humanInTheLoopData?.actionRequest) {
62
- return "done";
62
+ return "interrupted";
63
63
  }
64
64
  if (this.message.tool_input) {
65
65
  return "loading";