@langgraph-js/sdk 3.0.2 → 3.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.
@@ -23,6 +23,7 @@ export declare const useChat: () => UnionStore<{
23
23
  refreshTools: () => Promise<void>;
24
24
  setTools(new_tools: import("../index.js").UnionTool<any>[]): void;
25
25
  isFELocking(): boolean | undefined;
26
+ getClient(): import("../LangGraphClient.js").LangGraphClient<unknown> | null;
26
27
  initClient: () => Promise<import("../LangGraphClient.js").LangGraphClient<unknown>>;
27
28
  sendMessage: (message?: import("@langchain/langgraph-sdk").Message[], extraData?: import("../LangGraphClient.js").SendMessageOptions, withoutCheck?: boolean) => Promise<void>;
28
29
  stopGeneration: () => void;
@@ -52,6 +52,7 @@ export declare const createChatStore: (initClientName: string, config: Partial<L
52
52
  refreshTools: () => Promise<void>;
53
53
  setTools(new_tools: UnionTool<any>[]): void;
54
54
  isFELocking(): boolean | undefined;
55
+ getClient(): LangGraphClient<unknown> | null;
55
56
  initClient: () => Promise<LangGraphClient<unknown>>;
56
57
  sendMessage: (message?: Message[], extraData?: SendMessageOptions, withoutCheck?: boolean) => Promise<void>;
57
58
  stopGeneration: () => void;
@@ -265,6 +265,9 @@ export const createChatStore = (initClientName, config, context = {}) => {
265
265
  var _a;
266
266
  return (_a = client.get()) === null || _a === void 0 ? void 0 : _a.isFELocking(renderMessages.get());
267
267
  },
268
+ getClient() {
269
+ return client.get();
270
+ },
268
271
  initClient,
269
272
  sendMessage,
270
273
  stopGeneration,
@@ -61,6 +61,7 @@ export declare const useChatProvider: (props: ChatProviderProps) => {
61
61
  refreshTools: () => Promise<void>;
62
62
  setTools(new_tools: import("../index.js").UnionTool<any>[]): void;
63
63
  isFELocking(): boolean | undefined;
64
+ getClient(): import("../LangGraphClient.js").LangGraphClient<unknown> | null;
64
65
  initClient: () => Promise<import("../LangGraphClient.js").LangGraphClient<unknown>>;
65
66
  sendMessage: (message?: import("@langchain/langgraph-sdk").Message[], extraData?: import("../LangGraphClient.js").SendMessageOptions, withoutCheck?: boolean) => Promise<void>;
66
67
  stopGeneration: () => void;
@@ -1,4 +1,4 @@
1
- import { defineComponent, inject, provide, onMounted } from "vue";
1
+ import { defineComponent, inject, provide, onMounted, defineExpose } from "vue";
2
2
  import { createChatStore } from "../ui-store/index.js";
3
3
  import { useStore } from "@nanostores/vue";
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langgraph-js/sdk",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
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",
@@ -271,6 +271,9 @@ export const createChatStore = (
271
271
  isFELocking() {
272
272
  return client.get()?.isFELocking(renderMessages.get());
273
273
  },
274
+ getClient() {
275
+ return client.get();
276
+ },
274
277
  initClient,
275
278
  sendMessage,
276
279
  stopGeneration,
@@ -1,4 +1,4 @@
1
- import { defineComponent, inject, provide, onMounted, h, type InjectionKey, type PropType, Ref } from "vue";
1
+ import { defineComponent, inject, provide, onMounted, defineExpose, type InjectionKey, type PropType, Ref } from "vue";
2
2
  import { createChatStore } from "../ui-store/index.js";
3
3
  import { useStore } from "@nanostores/vue";
4
4
  import { PreinitializedWritableAtom, StoreValue } from "nanostores";