跳到主要内容

Interface: BaseOutputParser<T>

An OutputParser is used to extract structured data from the raw output of the LLM.

Type parameters

Name
T

Implemented by

Methods

format

format(output): string

Parameters

NameType
outputstring

Returns

string

Defined in

packages/core/src/OutputParser.ts:8


parse

parse(output): T

Parameters

NameType
outputstring

Returns

T

Defined in

packages/core/src/OutputParser.ts:7