Ana içeriğe geç

Class: Response

Response is the output of a LLM

Constructors

constructor

new Response(response, sourceNodes?): Response

Parameters

NameType
responsestring
sourceNodes?NodeWithScore<Metadata>[]

Returns

Response

Defined in

packages/core/src/Response.ts:11

Properties

metadata

metadata: Record<string, unknown> = {}

Defined in

packages/core/src/Response.ts:9


response

response: string

Defined in

packages/core/src/Response.ts:7


sourceNodes

Optional sourceNodes: NodeWithScore<Metadata>[]

Defined in

packages/core/src/Response.ts:8

Methods

_getFormattedSources

_getFormattedSources(): void

Returns

void

Defined in

packages/core/src/Response.ts:16


toString

toString(): string

Returns

string

Defined in

packages/core/src/Response.ts:20