@langgraph-js/sdk 1.9.0 → 1.9.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.
@@ -49,6 +49,7 @@ export declare const createChatStore: (initClientName: string, config: LangGraph
49
49
  tools: import("nanostores").PreinitializedWritableAtom<UnionTool<any, Object, any>[]> & object;
50
50
  };
51
51
  mutations: {
52
+ refreshTools: () => Promise<void>;
52
53
  setTools(new_tools: UnionTool<any>[]): void;
53
54
  isFELocking(): boolean | undefined;
54
55
  initClient: () => Promise<LangGraphClient>;
@@ -133,6 +133,7 @@ export const createChatStore = (initClientName, config, context = {}) => {
133
133
  client.set(newClient);
134
134
  if (showGraph.get())
135
135
  refreshGraph();
136
+ refreshTools();
136
137
  return newClient;
137
138
  }
138
139
  /**
@@ -224,6 +225,7 @@ export const createChatStore = (initClientName, config, context = {}) => {
224
225
  tools,
225
226
  },
226
227
  mutations: {
228
+ refreshTools,
227
229
  setTools(new_tools) {
228
230
  tools.set(new_tools);
229
231
  refreshTools();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langgraph-js/sdk",
3
- "version": "1.9.0",
3
+ "version": "1.9.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",
@@ -138,6 +138,7 @@ export const createChatStore = (
138
138
  newClient.graphState = {};
139
139
  client.set(newClient);
140
140
  if (showGraph.get()) refreshGraph();
141
+ refreshTools();
141
142
  return newClient;
142
143
  }
143
144
 
@@ -233,6 +234,7 @@ export const createChatStore = (
233
234
  tools,
234
235
  },
235
236
  mutations: {
237
+ refreshTools,
236
238
  setTools(new_tools: UnionTool<any>[]) {
237
239
  tools.set(new_tools);
238
240
  refreshTools();