@langgraph-js/sdk 3.0.3 → 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;
|
package/package.json
CHANGED