parse_output#
- langchain_upstage.document_parse_parsers.parse_output(
- data: dict,
- output_format: Literal['text', 'html', 'markdown'],
Parse the output data based on the specified output type.
- Parameters:
data (dict) – The data to be parsed.
output_format (OutputFormat) – The output format to parse the element data into.
- Returns:
The parsed output.
- Return type:
str
- Raises:
ValueError – If the output type is invalid.