# BooleanOutputParser

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/output_parsers/boolean/BooleanOutputParser)

Parse the output of an LLM call to a boolean.

## Signature

```python
BooleanOutputParser()
```

## Extends

- `BaseOutputParser[bool]`

## Properties

- `true_val`
- `false_val`

## Methods

- [`parse()`](https://reference.langchain.com/python/langchain-classic/output_parsers/boolean/BooleanOutputParser/parse)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/c0344e0cee824c1c6489ba972cea171ff193d234/libs/langchain/langchain_classic/output_parsers/boolean.py#L6)