copy() — langchain Function Reference
Architecture documentation for the copy() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 21f74ec3_56bb_1283_982b_71729892f487["copy()"] 24bc19d6_d1f4_bd59_6fc4_6ef5b08a4d41["BaseCallbackManager"] 21f74ec3_56bb_1283_982b_71729892f487 -->|defined in| 24bc19d6_d1f4_bd59_6fc4_6ef5b08a4d41 style 21f74ec3_56bb_1283_982b_71729892f487 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/base.py lines 933–943
def copy(self) -> Self:
"""Return a copy of the callback manager."""
return self.__class__(
handlers=self.handlers.copy(),
inheritable_handlers=self.inheritable_handlers.copy(),
parent_run_id=self.parent_run_id,
tags=self.tags.copy(),
inheritable_tags=self.inheritable_tags.copy(),
metadata=self.metadata.copy(),
inheritable_metadata=self.inheritable_metadata.copy(),
)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does copy() do?
copy() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/base.py.
Where is copy() defined?
copy() is defined in libs/core/langchain_core/callbacks/base.py at line 933.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free