| values | Full state after each step | Debugging, state inspection | | updates | State deltas after each step | Efficient UI updates | | messages | LLM tokens + metadata | Chat interfaces, typing indicators | | custom | User-defined events | Progress bars, status updates | | debug | Maximum information | Development, troubleshooting |
| Mode selection | Use ["updates", "custom"] for most UIs | | Token streaming | Use messages mode with node filtering | | Progress tracking | Use custom mode with getstreamwriter() | | Subgraph visibility | Enable subgraphs=True for complex workflows |
stream-modes Keywords: stream mode, values, updates, messages, custom, debug Solves:
Шаблоны потоковой передачи LangGraph для обновлений в реальном времени. Используйте при реализации индикаторов прогресса, потоковой передачи токенов, пользовательских событий или отзывов пользователей в реальном времени в рабочих процессах. Источник: yonatangross/orchestkit.