From 519b3b9ce1cf0c4873e399e11be377166a94568e Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Mon, 12 Aug 2024 20:48:20 -0400 Subject: [PATCH] docs: add async python<=3.10 warning to streaming concepts (#1324) * docs: add async python<=3.10 warning to streaming concepts --- docs/docs/concepts/low_level.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/docs/concepts/low_level.md b/docs/docs/concepts/low_level.md index bac5bbdd5..fb0b734fd 100644 --- a/docs/docs/concepts/low_level.md +++ b/docs/docs/concepts/low_level.md @@ -434,3 +434,6 @@ LangGraph is built with first class support for streaming. There are several dif - `"debug"`: This streams as much information as possible throughout the execution of the graph. In addition, you can use the [`astream_events`](../how-tos/streaming-events-from-within-tools.ipynb) method to stream back events that happen _inside_ nodes. This is useful for [streaming tokens of LLM calls](../how-tos/streaming-tokens.ipynb). + +!!! warning "ASYNC IN PYTHON<=3.10" + You may fail to see events being emitted from inside a node when using `.astream_events` in Python <= 3.10. If you're using a Langchain RunnableLambda, a RunnableGenerator, or Tool asynchronously inside your node, you will have to propagate callbacks to these objects manually. This is because LangChain cannot automatically propagate callbacks to child objects in this case. Please see examples [here](../how-tos/streaming-content.ipynb) and [here](../how-tos/streaming-events-from-within-tools.ipynb). \ No newline at end of file