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

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmith_openapi_client_compatmodel_dump
Function●Since v0.8

model_dump

Copy
model_dump(
  model: pydantic.BaseModel,
  *,
  exclude: IncEx | None = None,
  exclude_unset
View source on GitHub
:
bool
=
False
,
exclude_defaults
:
bool
=
False
,
warnings
:
bool
=
True
,
mode
:
Literal
[
'json'
,
'python'
]
=
'python'
,
by_alias
:
bool
|
None
=
None
)
->
dict
[
str
,
Any
]