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

Source

packages/core/src/OutputParser.ts:80


parse()

parse(output): StructuredOutput<SubQuestion[]>

Parameters

output: string

Returns

StructuredOutput<SubQuestion[]>

Implementation of

BaseOutputParser . parse

Source

packages/core/src/OutputParser.ts:75