MCPcopy
hub / github.com/langchain-ai/langchain / copy

Method copy

libs/core/langchain_core/callbacks/base.py:842–852  ·  view source on GitHub ↗

Copy the callback manager.

(self: T)

Source from the content-addressed store, hash-verified

840 self.inheritable_metadata = inheritable_metadata or {}
841
842 def copy(self: T) -> T:
843 """Copy the callback manager."""
844 return self.__class__(
845 handlers=self.handlers,
846 inheritable_handlers=self.inheritable_handlers,
847 parent_run_id=self.parent_run_id,
848 tags=self.tags,
849 inheritable_tags=self.inheritable_tags,
850 metadata=self.metadata,
851 inheritable_metadata=self.inheritable_metadata,
852 )
853
854 @property
855 def is_async(self) -> bool:

Callers 15

test_anthropic_generateFunction · 0.45
_merge_messagesFunction · 0.45
split_textMethod · 0.45
test_can_swap_cachesFunction · 0.45
test_filter_messageFunction · 0.45
test_utils.pyFile · 0.45
_copy_runMethod · 0.45
_persist_runMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_anthropic_generateFunction · 0.36
test_can_swap_cachesFunction · 0.36
test_filter_messageFunction · 0.36
_copy_runMethod · 0.36
test_edenai_generateFunction · 0.36
test_gpt_router_generateFunction · 0.36
test_dappier_generateFunction · 0.36