diff --git a/libs/core/langchain_core/runnables/base.py b/libs/core/langchain_core/runnables/base.py index 8c36967b6e..3a231fdee4 100644 --- a/libs/core/langchain_core/runnables/base.py +++ b/libs/core/langchain_core/runnables/base.py @@ -3576,6 +3576,11 @@ class RunnableLambda(Runnable[Input, Output]): RunnableLambda can be composed as any other Runnable and provides seamless integration with LangChain tracing. + `RunnableLambda` is best suited for code that does not need to support + streaming. If you need to support streaming (i.e., be able to operate + on chunks of inputs and yield chunks of outputs), use `RunnableGenerator` + instead. + Examples: .. code-block:: python