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
Pythonlangsmithsandbox_helpersresolve_command_run_config
Function●Since v0.13

resolve_command_run_config

Copy
resolve_command_run_config(
  run_config: Any,
  *,
  env: Optional[dict[str, str
View source on GitHub
]
]
,
cwd
:
Optional
[
str
]
)
->
Optional
[
dict
[
str
,
Any
]
]

Normalize a per-command run_config, rejecting the deprecated pairing.

The server answers 400 for a request carrying both spellings rather than letting one silently win, so refuse it here where the message can name the replacement.