# parse_output

> **Function** in `langchain_upstage`

📖 [View in docs](https://reference.langchain.com/python/langchain-upstage/document_parse_parsers/parse_output)

Parse the output data based on the specified output type.

## Signature

```python
parse_output(
    data: dict,
    output_format: OutputFormat,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `data` | `dict` | Yes | The data to be parsed. |
| `output_format` | `OutputFormat` | Yes | The output format to parse the element data into. |

## Returns

`str`

The parsed output.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-upstage/blob/1acdf18d9c969bb59ae0c5365f8b964e397f8b16/libs/upstage/langchain_upstage/document_parse_parsers.py#L41)