Skip to main content

Class: SubQuestionOutputParser

SubQuestionOutputParser is used to parse the output of the SubQuestionGenerator.

Implements

Constructors

new SubQuestionOutputParser()

new SubQuestionOutputParser(): SubQuestionOutputParser

Returns

SubQuestionOutputParser

Methods

format()

format(output): string

Parameters

output: string

Returns

string

Implementation of

BaseOutputParser.format

Defined in

packages/llamaindex/src/OutputParser.ts:80


parse()

parse(output): StructuredOutput<SubQuestion[]>

Parameters

output: string

Returns

StructuredOutput<SubQuestion[]>

Implementation of

BaseOutputParser.parse

Defined in

packages/llamaindex/src/OutputParser.ts:75