# 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/185119f98e6286253a2326d7cf4f59592678023d/libs/langchain/langchain_classic/output_parsers/yaml.py#L18)