メインコンテンツまでスキップ

Class: Response

Response is the output of a LLM

Constructors

constructor

new Response(response, sourceNodes?)

Parameters

NameType
responsestring
sourceNodes?BaseNode<Metadata>[]

Defined in

packages/core/src/Response.ts:10

Properties

response

response: string

Defined in

packages/core/src/Response.ts:7


sourceNodes

Optional sourceNodes: BaseNode<Metadata>[]

Defined in

packages/core/src/Response.ts:8

Methods

getFormattedSources

getFormattedSources(): void

Returns

void

Defined in

packages/core/src/Response.ts:15


toString

toString(): string

Returns

string

Defined in

packages/core/src/Response.ts:19