Home / Function/ copy() — langchain Function Reference

copy() — langchain Function Reference

Architecture documentation for the copy() function in manager.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f8b97710_364f_a2bb_125c_cabc205b2475["copy()"]
  b12567d8_81a9_52c3_3096_d524d1371c83["CallbackManagerForChainGroup"]
  f8b97710_364f_a2bb_125c_cabc205b2475 -->|defined in| b12567d8_81a9_52c3_3096_d524d1371c83
  0306706c_4a04_dbfc_cb35_88cfd5efa9d5["copy()"]
  0306706c_4a04_dbfc_cb35_88cfd5efa9d5 -->|calls| f8b97710_364f_a2bb_125c_cabc205b2475
  9459fba6_8a00_1919_2b50_35cd43b2bdcd["_configure()"]
  9459fba6_8a00_1919_2b50_35cd43b2bdcd -->|calls| f8b97710_364f_a2bb_125c_cabc205b2475
  0306706c_4a04_dbfc_cb35_88cfd5efa9d5["copy()"]
  f8b97710_364f_a2bb_125c_cabc205b2475 -->|calls| 0306706c_4a04_dbfc_cb35_88cfd5efa9d5
  style f8b97710_364f_a2bb_125c_cabc205b2475 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/callbacks/manager.py lines 1678–1688

    def copy(self) -> CallbackManagerForChainGroup:
        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(),
            parent_run_manager=self.parent_run_manager,
        )

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does copy() do?
copy() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/manager.py.
Where is copy() defined?
copy() is defined in libs/core/langchain_core/callbacks/manager.py at line 1678.
What does copy() call?
copy() calls 1 function(s): copy.
What calls copy()?
copy() is called by 2 function(s): _configure, copy.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free