# YamlOutputParser

> **Class** in `langchain_classic`

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

Parse YAML output using a Pydantic model.

## Signature

```python
YamlOutputParser()
```

## Extends

- `BaseOutputParser[T]`

## Properties

- `pydantic_object`
- `pattern`
- `OutputType`

## Methods

- [`parse()`](https://reference.langchain.com/python/langchain-classic/output_parsers/yaml/YamlOutputParser/parse)
- [`get_format_instructions()`](https://reference.langchain.com/python/langchain-classic/output_parsers/yaml/YamlOutputParser/get_format_instructions)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/f0c5a28fa05adcda89aebcb449d897245ab21fa4/libs/langchain/langchain_classic/output_parsers/yaml.py#L18)