Logo
Interfaces

BaseOutputParser

Defined in: packages/core/src/schema/type/base-output-parser.ts:5

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

Type Parameters

T

T = any

Methods

parse()

parse(output): T

Defined in: packages/core/src/schema/type/base-output-parser.ts:6

Parameters

output

string

Returns

T


format()

format(output): string

Defined in: packages/core/src/schema/type/base-output-parser.ts:8

Parameters

output

string

Returns

string

On this page