[PR #1375] [MERGED] feat(sdk): make history fetching configurable in useStream #1414

Closed
opened 2026-02-15 20:15:41 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1375
Author: @dqbd
Created: 7/9/2025
Status: Merged
Merged: 7/9/2025
Merged by: @dqbd

Base: mainHead: dqbd/sdk-stream-configurable-fetch-history


📝 Commits (2)

  • 6773f42 feat(sdk): make history fetching configurable in useStream
  • 994f1fa Add changesets

📊 Changes

5 files changed (+332 additions, -12 deletions)

View changed files

.changeset/two-queens-pick.md (+5 -0)
.changeset/yummy-pans-enter.md (+7 -0)
📝 libs/langgraph-api/src/experimental/embed.mts (+10 -0)
📝 libs/sdk-validation/src/tests/stream.test.tsx (+256 -1)
📝 libs/sdk/src/react/stream.tsx (+54 -11)

📄 Description

useStream now accepts fetchStateHistory. This can be used to limit the number of checkpoints returned by the API or switch to /getState endpoint if fetchStateHistory: false.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraphjs/pull/1375 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 7/9/2025 **Status:** ✅ Merged **Merged:** 7/9/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/sdk-stream-configurable-fetch-history` --- ### 📝 Commits (2) - [`6773f42`](https://github.com/langchain-ai/langgraphjs/commit/6773f427af3413d942f698293c7a8a8d25b3d065) feat(sdk): make history fetching configurable in useStream - [`994f1fa`](https://github.com/langchain-ai/langgraphjs/commit/994f1fa3abe47111fe396cb9141f490b283aa2d4) Add changesets ### 📊 Changes **5 files changed** (+332 additions, -12 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/two-queens-pick.md` (+5 -0) ➕ `.changeset/yummy-pans-enter.md` (+7 -0) 📝 `libs/langgraph-api/src/experimental/embed.mts` (+10 -0) 📝 `libs/sdk-validation/src/tests/stream.test.tsx` (+256 -1) 📝 `libs/sdk/src/react/stream.tsx` (+54 -11) </details> ### 📄 Description useStream now accepts `fetchStateHistory`. This can be used to limit the number of checkpoints returned by the API or switch to `/getState` endpoint if `fetchStateHistory: false`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:41 -05:00
yindo closed this issue 2026-02-15 20:15:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1414