Class: EngineResponse
Implements
Properties
message
message:
ChatMessage
Implementation of
Defined in
packages/llamaindex/src/EngineResponse.ts:14
metadata
metadata:
Record
<string
,unknown
> ={}
Defined in
packages/llamaindex/src/EngineResponse.ts:12
raw
raw:
null
|object
Raw response from the LLM
If LLM response an iterable of chunks, this will be an array of those chunks
Implementation of
Defined in
packages/llamaindex/src/EngineResponse.ts:15
sourceNodes?
optional
sourceNodes:NodeWithScore
<Metadata
>[]
Defined in
packages/llamaindex/src/EngineResponse.ts:10
Accessors
delta
get
delta():string
Returns
string
Implementation of
ChatResponseChunk.delta
Defined in
packages/llamaindex/src/EngineResponse.ts:78
response
get
response():string
Returns
string
Defined in
packages/llamaindex/src/EngineResponse.ts:74
Methods
toString()
toString():
string
Returns a string representation of an object.
Returns
string
Defined in
packages/llamaindex/src/EngineResponse.ts:87
fromChatResponse()
static
fromChatResponse(chatResponse
,sourceNodes
?):EngineResponse
Parameters
• chatResponse: ChatResponse
<object
>
• sourceNodes?: NodeWithScore
<Metadata
>[]
Returns
Defined in
packages/llamaindex/src/EngineResponse.ts:55
fromChatResponseChunk()
static
fromChatResponseChunk(chunk
,sourceNodes
?):EngineResponse
Parameters
• chunk: ChatResponseChunk
• sourceNodes?: NodeWithScore
<Metadata
>[]
Returns
Defined in
packages/llamaindex/src/EngineResponse.ts:62
fromResponse()
static
fromResponse(response
,stream
,sourceNodes
?):EngineResponse
Parameters
• response: string
• stream: boolean
• sourceNodes?: NodeWithScore
<Metadata
>[]