@langchain/langgraph-sdk 0.0.75 → 0.0.76

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.
@@ -381,6 +381,7 @@ function useStream(options) {
381
381
  signal: abortRef.current.signal,
382
382
  checkpoint,
383
383
  streamMode,
384
+ streamSubgraphs: submitOptions?.streamSubgraphs,
384
385
  });
385
386
  let streamError;
386
387
  for await (const { event, data } of run) {
@@ -207,6 +207,12 @@ interface SubmitOptions<StateType extends Record<string, unknown> = Record<strin
207
207
  feedbackKeys?: string[];
208
208
  streamMode?: Array<StreamMode>;
209
209
  optimisticValues?: Partial<StateType> | ((prev: StateType) => Partial<StateType>);
210
+ /**
211
+ * Whether or not to stream the nodes of any subgraphs called
212
+ * by the assistant.
213
+ * @default false
214
+ */
215
+ streamSubgraphs?: boolean;
210
216
  }
211
217
  export declare function useStream<StateType extends Record<string, unknown> = Record<string, unknown>, Bag extends {
212
218
  ConfigurableType?: Record<string, unknown>;
@@ -378,6 +378,7 @@ export function useStream(options) {
378
378
  signal: abortRef.current.signal,
379
379
  checkpoint,
380
380
  streamMode,
381
+ streamSubgraphs: submitOptions?.streamSubgraphs,
381
382
  });
382
383
  let streamError;
383
384
  for await (const { event, data } of run) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.19",
@@ -0,0 +1 @@
1
+ module.exports = require('../dist/react-ui/client.cjs');
@@ -0,0 +1 @@
1
+ export * from '../dist/react-ui/client.js'
@@ -0,0 +1 @@
1
+ export * from '../dist/react-ui/client.js'
@@ -0,0 +1 @@
1
+ export * from '../dist/react-ui/client.js'