The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
core[patch]: Add clarification about streaming to RunnableLambda (#23227)
Eugene Yurtsev59d7adff8f9e
diff --git a/libs/core/langchain_core/runnables/base.py b/libs/core/langchain_core/runnables/base.pyindex 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 providesseamless 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