@langgraph-js/sdk 1.1.2 → 1.1.3

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.
@@ -23,7 +23,7 @@ export declare const createChatStore: (initClientName: string, config: LangGraph
23
23
  mutations: {
24
24
  initClient: () => Promise<void>;
25
25
  sendMessage: (message?: Message[], extraData?: SendMessageOptions) => Promise<void>;
26
- interruptMessage: () => void;
26
+ stopGeneration: () => void;
27
27
  toggleToolCollapse: (toolId: string) => void;
28
28
  toggleHistoryVisible: () => void;
29
29
  refreshHistoryList: () => Promise<void>;
@@ -69,7 +69,7 @@ export const createChatStore = (initClientName, config, context = {}) => {
69
69
  userInput.set("");
70
70
  loading.set(false);
71
71
  };
72
- const interruptMessage = () => {
72
+ const stopGeneration = () => {
73
73
  var _a;
74
74
  (_a = client.get()) === null || _a === void 0 ? void 0 : _a.cancelRun();
75
75
  };
@@ -113,7 +113,7 @@ export const createChatStore = (initClientName, config, context = {}) => {
113
113
  mutations: {
114
114
  initClient,
115
115
  sendMessage,
116
- interruptMessage,
116
+ stopGeneration,
117
117
  toggleToolCollapse,
118
118
  toggleHistoryVisible,
119
119
  refreshHistoryList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langgraph-js/sdk",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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",
@@ -76,7 +76,7 @@ export const createChatStore = (
76
76
  loading.set(false);
77
77
  };
78
78
 
79
- const interruptMessage = () => {
79
+ const stopGeneration = () => {
80
80
  client.get()?.cancelRun();
81
81
  };
82
82
 
@@ -120,7 +120,7 @@ export const createChatStore = (
120
120
  mutations: {
121
121
  initClient,
122
122
  sendMessage,
123
- interruptMessage,
123
+ stopGeneration,
124
124
  toggleToolCollapse,
125
125
  toggleHistoryVisible,
126
126
  refreshHistoryList,