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
  0306706c_4a04_dbfc_cb35_88cfd5efa9d5["copy()"]
  c39f1e6c_ff8b_15f7_1623_83b1b6b328ac["AsyncCallbackManagerForChainGroup"]
  0306706c_4a04_dbfc_cb35_88cfd5efa9d5 -->|defined in| c39f1e6c_ff8b_15f7_1623_83b1b6b328ac
  f8b97710_364f_a2bb_125c_cabc205b2475["copy()"]
  f8b97710_364f_a2bb_125c_cabc205b2475 -->|calls| 0306706c_4a04_dbfc_cb35_88cfd5efa9d5
  f8b97710_364f_a2bb_125c_cabc205b2475["copy()"]
  0306706c_4a04_dbfc_cb35_88cfd5efa9d5 -->|calls| f8b97710_364f_a2bb_125c_cabc205b2475
  style 0306706c_4a04_dbfc_cb35_88cfd5efa9d5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/callbacks/manager.py lines 2196–2207

    def copy(self) -> AsyncCallbackManagerForChainGroup:
        """Return a copy the async 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(),
            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 2196.
What does copy() call?
copy() calls 1 function(s): copy.
What calls copy()?
copy() is called by 1 function(s): copy.

Analyze Your Own Codebase

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

Try Supermodel Free