copy() — langchain Function Reference
Architecture documentation for the copy() function in graph.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 3db09069_0f77_1402_7f96_14d549abbd03["copy()"] ab6bc67d_beba_4c36_aefe_bf6dbf00f696["Node"] 3db09069_0f77_1402_7f96_14d549abbd03 -->|defined in| ab6bc67d_beba_4c36_aefe_bf6dbf00f696 f87c1ed6_b569_98a8_6084_9f7857a4fa39["copy()"] f87c1ed6_b569_98a8_6084_9f7857a4fa39 -->|calls| 3db09069_0f77_1402_7f96_14d549abbd03 6764536f_15b8_5436_aa1a_53ff3f1956c2["extend()"] 6764536f_15b8_5436_aa1a_53ff3f1956c2 -->|calls| 3db09069_0f77_1402_7f96_14d549abbd03 9f553f07_a134_96b2_5d30_cde7bee5fd6f["reid()"] 9f553f07_a134_96b2_5d30_cde7bee5fd6f -->|calls| 3db09069_0f77_1402_7f96_14d549abbd03 f87c1ed6_b569_98a8_6084_9f7857a4fa39["copy()"] 3db09069_0f77_1402_7f96_14d549abbd03 -->|calls| f87c1ed6_b569_98a8_6084_9f7857a4fa39 style 3db09069_0f77_1402_7f96_14d549abbd03 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/runnables/graph.py lines 105–125
def copy(
self,
*,
id: str | None = None,
name: str | None = None,
) -> Node:
"""Return a copy of the node with optional new id and name.
Args:
id: The new node id.
name: The new node name.
Returns:
A copy of the node with the new id and name.
"""
return Node(
id=id or self.id,
name=name or self.name,
data=self.data,
metadata=self.metadata,
)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does copy() do?
copy() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/graph.py.
Where is copy() defined?
copy() is defined in libs/core/langchain_core/runnables/graph.py at line 105.
What does copy() call?
copy() calls 1 function(s): copy.
What calls copy()?
copy() is called by 3 function(s): copy, extend, reid.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free