Skip to main content

Class: Response

Respone is the output of a LLM

Constructors

constructor

new Response(response, sourceNodes?)

Parameters

NameType
responsestring
sourceNodes?BaseNode[]

Defined in

Response.ts:10

Properties

response

response: string

Defined in

Response.ts:7


sourceNodes

Optional sourceNodes: BaseNode[]

Defined in

Response.ts:8

Methods

getFormattedSources

getFormattedSources(): void

Returns

void

Defined in

Response.ts:15


toString

toString(): string

Returns

string

Defined in

Response.ts:19