LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithschemasExampleCreatecopy
Method●Since v0.14Deprecated

copy

Copy
copy(
  self,
  *,
  include: Optional[Union[AbstractSet[int], AbstractSet[
View source on GitHub
str
]
,
Mapping
[
int
,
Any
]
,
Mapping
[
str
,
Any
]
]
]
=
None
,
exclude
:
Optional
[
Union
[
AbstractSet
[
int
]
,
AbstractSet
[
str
]
,
Mapping
[
int
,
Any
]
,
Mapping
[
str
,
Any
]
]
]
=
None
,
update
:
Optional
[
dict
[
str
,
Any
]
]
=
None
,
deep
:
bool
=
False
)
->
Self

Copy the example, accepting the deprecated outputs update alias.