__init__() — langchain Function Reference
Architecture documentation for the __init__() function in manager.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 80d69b6b_733a_5c3d_3088_80cbf31bd620["__init__()"] e8e02bb6_9351_3319_8aa4_a7ab69181c15["BaseRunManager"] 80d69b6b_733a_5c3d_3088_80cbf31bd620 -->|defined in| e8e02bb6_9351_3319_8aa4_a7ab69181c15 style 80d69b6b_733a_5c3d_3088_80cbf31bd620 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/manager.py lines 460–492
def __init__(
self,
*,
run_id: UUID,
handlers: list[BaseCallbackHandler],
inheritable_handlers: list[BaseCallbackHandler],
parent_run_id: UUID | None = None,
tags: list[str] | None = None,
inheritable_tags: list[str] | None = None,
metadata: dict[str, Any] | None = None,
inheritable_metadata: dict[str, Any] | None = None,
) -> None:
"""Initialize the run manager.
Args:
run_id: The ID of the run.
handlers: The list of handlers.
inheritable_handlers: The list of inheritable handlers.
parent_run_id: The ID of the parent run.
tags: The list of tags.
inheritable_tags: The list of inheritable tags.
metadata: The metadata.
inheritable_metadata: The inheritable metadata.
"""
self.run_id = run_id
self.handlers = handlers
self.inheritable_handlers = inheritable_handlers
self.parent_run_id = parent_run_id
self.tags = tags or []
self.inheritable_tags = inheritable_tags or []
self.metadata = metadata or {}
self.inheritable_metadata = inheritable_metadata or {}
Domain
Subdomains
Source
Frequently Asked Questions
What does __init__() do?
__init__() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/manager.py.
Where is __init__() defined?
__init__() is defined in libs/core/langchain_core/callbacks/manager.py at line 460.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free