__init__() — langchain Function Reference
Architecture documentation for the __init__() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f25836bc_a658_6517_6437_783f8ca392bc["__init__()"] 17599172_8889_afc6_2237_4429f3439071["RunnableParallel"] f25836bc_a658_6517_6437_783f8ca392bc -->|defined in| 17599172_8889_afc6_2237_4429f3439071 24b30490_4fa3_041b_f903_38cad0c9ae9b["coerce_to_runnable()"] f25836bc_a658_6517_6437_783f8ca392bc -->|calls| 24b30490_4fa3_041b_f903_38cad0c9ae9b style f25836bc_a658_6517_6437_783f8ca392bc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/runnables/base.py lines 3651–3675
def __init__(
self,
steps__: Mapping[
str,
Runnable[Input, Any]
| Callable[[Input], Any]
| Mapping[str, Runnable[Input, Any] | Callable[[Input], Any]],
]
| None = None,
**kwargs: Runnable[Input, Any]
| Callable[[Input], Any]
| Mapping[str, Runnable[Input, Any] | Callable[[Input], Any]],
) -> None:
"""Create a `RunnableParallel`.
Args:
steps__: The steps to include.
**kwargs: Additional steps to include.
"""
merged = {**steps__} if steps__ is not None else {}
merged.update(kwargs)
super().__init__(
steps__={key: coerce_to_runnable(r) for key, r in merged.items()}
)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does __init__() do?
__init__() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/base.py.
Where is __init__() defined?
__init__() is defined in libs/core/langchain_core/runnables/base.py at line 3651.
What does __init__() call?
__init__() 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