Class: Response
Response is the output of a LLM
Constructors
constructor
• new Response(response
, sourceNodes?
): Response
Parameters
Name | Type |
---|---|
response | string |
sourceNodes? | NodeWithScore <Metadata >[] |
Returns
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