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

resolve_close_input

Copy
resolve_close_input(
  close_input: Optional[bool],
  *,
  pty: bool
) -> bool
View source on GitHub

Whether to half-close stdin at spawn.

Defaults on for a non-PTY command: a command that reads stdin otherwise blocks on a pipe nobody writes to until the timeout kills it. A PTY has no separate write end to close, so the server ignores the flag there.