Ana içeriğe geç

Class: Response

Response is the output of a LLM

Constructors

new Response()

new Response(response, sourceNodes?): Response

Parameters

response: string

sourceNodes?: NodeWithScore <Metadata>[]

Returns

Response

Source

packages/core/src/Response.ts:11

Properties

metadata

metadata: Record<string, unknown> = {}

Source

packages/core/src/Response.ts:9


response

response: string

Source

packages/core/src/Response.ts:7


sourceNodes?

optional sourceNodes: NodeWithScore <Metadata>[]

Source

packages/core/src/Response.ts:8

Methods

_getFormattedSources()

protected _getFormattedSources(): void

Returns

void

Source

packages/core/src/Response.ts:16


toString()

toString(): string

Returns

string

Source

packages/core/src/Response.ts:20