# coerce_boolean

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_utils/_utils/coerce_boolean)

## Signature

```python
coerce_boolean(
    val: str,
) -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/e9d3961c7165d87b6312f379f3a4a477aebb1f97/src/langsmith/_utils/_utils.py#L336)