# resolve_close_input

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/sandbox/_helpers/resolve_close_input)

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.

## Signature

```python
resolve_close_input(
    close_input: Optional[bool],
    *,
    pty: bool,
) -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/15468f97c18467d67ececb90b17107b0875e7a65/python/langsmith/sandbox/_helpers.py#L75)