# 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/51e954877efd2d2c3c5bf09364dcfec8794eadb0/libs/langchain/langchain_classic/output_parsers/boolean.py#L6)