Home / Function/ __ror__() — langchain Function Reference

__ror__() — langchain Function Reference

Architecture documentation for the __ror__() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  0219b888_cee0_4e47_85c6_6d4c512ee749["__ror__()"]
  c4bf8d59_69f9_f8e5_efba_837c20df2360["RunnableSequence"]
  0219b888_cee0_4e47_85c6_6d4c512ee749 -->|defined in| c4bf8d59_69f9_f8e5_efba_837c20df2360
  24b30490_4fa3_041b_f903_38cad0c9ae9b["coerce_to_runnable()"]
  0219b888_cee0_4e47_85c6_6d4c512ee749 -->|calls| 24b30490_4fa3_041b_f903_38cad0c9ae9b
  style 0219b888_cee0_4e47_85c6_6d4c512ee749 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/runnables/base.py lines 3104–3128

    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]:
        if isinstance(other, RunnableSequence):
            return RunnableSequence(
                other.first,
                *other.middle,
                other.last,
                self.first,
                *self.middle,
                self.last,
                name=other.name or self.name,
            )
        return RunnableSequence(
            coerce_to_runnable(other),
            self.first,
            *self.middle,
            self.last,
            name=self.name,
        )

Domain

Subdomains

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 3104.
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