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
Pythonlangsmithrun_treesRunTreepatch
Method●Since v0.2

patch

Copy
patch(
    self,
    *,
    exclude_inputs: Optional[bool] = None,
) -> None
View source on GitHub

Parameters

NameTypeDescription
exclude_inputsOptional[bool]
Default:None

Whether to exclude inputs from the patch request. Defaults to None, meaning the value of the LANGSMITH_EXCLUDE_INPUTS_ON_PATCH environment variable is used (itself defaulting to True). Pass an explicit True or False to override the environment for this call.

Patch the run tree to the API in a background thread.