mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-18 12:58:59 +00:00
core[patch]: Add clarification about streaming to RunnableLambda (#23227)
Add streaming clarification to runnable lambda docstring.
This commit is contained in:
parent
60db79a38a
commit
59d7adff8f
@ -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…
Reference in New Issue
Block a user