# open_timeout_for

> **Function** in `langsmith`

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

Per-attempt open timeout, clamped so it cannot outlive ``deadline``.

## Signature

```python
open_timeout_for(
    deadline: Optional[float],
) -> Optional[float]
```

---

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