core[patch]: Add clarification about streaming to RunnableLambda (#23227)

Add streaming clarification to runnable lambda docstring.
pull/23240/head
Eugene Yurtsev 2 months ago committed by GitHub
parent 60db79a38a
commit 59d7adff8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save