[PR #2117] [MERGED] feat(langchain): add useStream streaming docs #2148

Closed
opened 2026-02-17 17:23:07 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/2117
Author: @christian-bromann
Created: 1/6/2026
Status: Merged
Merged: 1/12/2026
Merged by: @christian-bromann

Base: mainHead: cb/streaming-docs


📝 Commits (8)

  • 2b8a33e feat(langchain): add useStream streaming docs
  • 18215ec cr
  • 93ea85c python port
  • 0826e00 cr
  • 9cb341d feedback
  • 94fdf50 Update src/oss/langchain/streaming/frontend.mdx
  • f5a0d19 Update src/oss/langchain/streaming/frontend.mdx
  • cc2a783 Update src/oss/langchain/streaming/frontend.mdx

📊 Changes

6 files changed (+2512 additions, -735 deletions)

View changed files

📝 src/docs.json (+26 -3)
📝 src/langsmith/generative-ui-react.mdx (+1 -1)
src/langsmith/use-stream-react.mdx (+0 -722)
src/oss/langchain/streaming/frontend.mdx (+2474 -0)
📝 src/oss/langchain/streaming/overview.mdx (+8 -5)
📝 uv.lock (+3 -4)

📄 Description

This PR adds comprehensive documentation for the useStream React hook, which enables real-time streaming from LangGraph agents in frontend applications. The streaming documentation has been reorganized into its own section with two pages:

  • Overview: The existing streaming concepts documentation (renamed from streaming.mdx)
  • Frontend: New documentation covering useStream for building generative UI experiences

The new frontend documentation covers:

  • Basic usage and configuration options
  • Type-safe streaming with createAgent and StateGraph
  • Rendering tool calls with ToolCallFromTool type inference
  • Custom streaming events using the writer
  • Multi-agent streaming with node metadata
  • Human-in-the-loop (HITL) approval workflows
  • Reasoning token extraction (OpenAI and Anthropic)
  • Custom state types and transport configurations
Screenshot 2026-01-06 at 4 48 26 PM

🔄 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/docs/pull/2117 **Author:** [@christian-bromann](https://github.com/christian-bromann) **Created:** 1/6/2026 **Status:** ✅ Merged **Merged:** 1/12/2026 **Merged by:** [@christian-bromann](https://github.com/christian-bromann) **Base:** `main` ← **Head:** `cb/streaming-docs` --- ### 📝 Commits (8) - [`2b8a33e`](https://github.com/langchain-ai/docs/commit/2b8a33e9c1e720e93df39e4dd147253b417ca586) feat(langchain): add useStream streaming docs - [`18215ec`](https://github.com/langchain-ai/docs/commit/18215ecd5a38579724f3dcf657639528c341a550) cr - [`93ea85c`](https://github.com/langchain-ai/docs/commit/93ea85c5112bf9ddd868910d9c2f809685f11d06) python port - [`0826e00`](https://github.com/langchain-ai/docs/commit/0826e000565d140a531fc6bc3d1daac90b9638ac) cr - [`9cb341d`](https://github.com/langchain-ai/docs/commit/9cb341dc7df01c8749382cef805fcae9f1972c86) feedback - [`94fdf50`](https://github.com/langchain-ai/docs/commit/94fdf50f3db19f93d09c4751f9c8e0b3dd32e639) Update src/oss/langchain/streaming/frontend.mdx - [`f5a0d19`](https://github.com/langchain-ai/docs/commit/f5a0d1946d4e4381163e2d1026d40b1463696951) Update src/oss/langchain/streaming/frontend.mdx - [`cc2a783`](https://github.com/langchain-ai/docs/commit/cc2a7838cae260361bcf0fc25161d800c81f3ed4) Update src/oss/langchain/streaming/frontend.mdx ### 📊 Changes **6 files changed** (+2512 additions, -735 deletions) <details> <summary>View changed files</summary> 📝 `src/docs.json` (+26 -3) 📝 `src/langsmith/generative-ui-react.mdx` (+1 -1) ➖ `src/langsmith/use-stream-react.mdx` (+0 -722) ➕ `src/oss/langchain/streaming/frontend.mdx` (+2474 -0) 📝 `src/oss/langchain/streaming/overview.mdx` (+8 -5) 📝 `uv.lock` (+3 -4) </details> ### 📄 Description This PR adds comprehensive documentation for the `useStream` React hook, which enables real-time streaming from LangGraph agents in frontend applications. The streaming documentation has been reorganized into its own section with two pages: - **Overview**: The existing streaming concepts documentation (renamed from `streaming.mdx`) - **Frontend**: New documentation covering `useStream` for building generative UI experiences The new frontend documentation covers: - Basic usage and configuration options - Type-safe streaming with `createAgent` and `StateGraph` - Rendering tool calls with `ToolCallFromTool` type inference - Custom streaming events using the `writer` - Multi-agent streaming with node metadata - Human-in-the-loop (HITL) approval workflows - Reasoning token extraction (OpenAI and Anthropic) - Custom state types and transport configurations <img width="1569" height="1266" alt="Screenshot 2026-01-06 at 4 48 26 PM" src="https://github.com/user-attachments/assets/6bb7a78b-e12d-4be4-8a23-3d92863d0875" /> --- <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-17 17:23:07 -05:00
yindo closed this issue 2026-02-17 17:23:07 -05:00
yindo changed title from [PR #2117] feat(langchain): add useStream streaming docs to [PR #2117] [MERGED] feat(langchain): add useStream streaming docs 2026-06-05 18:16:55 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#2148