__ror__() — langchain Function Reference
Architecture documentation for the __ror__() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c2795b30_88b0_3226_aa97_c8dabf0a7477["__ror__()"] 4a62481c_02cb_a5de_1833_50669d5351a6["Runnable"] c2795b30_88b0_3226_aa97_c8dabf0a7477 -->|defined in| 4a62481c_02cb_a5de_1833_50669d5351a6 24b30490_4fa3_041b_f903_38cad0c9ae9b["coerce_to_runnable()"] c2795b30_88b0_3226_aa97_c8dabf0a7477 -->|calls| 24b30490_4fa3_041b_f903_38cad0c9ae9b style c2795b30_88b0_3226_aa97_c8dabf0a7477 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/runnables/base.py lines 639–658
def __ror__(
self,
other: Runnable[Other, Any]
| Callable[[Iterator[Other]], Iterator[Any]]
| Callable[[AsyncIterator[Other]], AsyncIterator[Any]]
| Callable[[Other], Any]
| Mapping[str, Runnable[Other, Any] | Callable[[Other], Any] | Any],
) -> RunnableSerializable[Other, Output]:
"""Runnable "reverse-or" operator.
Compose this `Runnable` with another object to create a
`RunnableSequence`.
Args:
other: Another `Runnable` or a `Runnable`-like object.
Returns:
A new `Runnable`.
"""
return RunnableSequence(coerce_to_runnable(other), self)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does __ror__() do?
__ror__() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/base.py.
Where is __ror__() defined?
__ror__() is defined in libs/core/langchain_core/runnables/base.py at line 639.
What does __ror__() call?
__ror__() calls 1 function(s): coerce_to_runnable.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free