Class: EngineResponse
Implements
Properties
message
message:
ChatMessage
Implementation of
Defined in
packages/core/dist/schema/index.d.ts:194
metadata
metadata:
Metadata
Defined in
packages/core/dist/schema/index.d.ts:193
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/core/dist/schema/index.d.ts:195
sourceNodes?
optional
sourceNodes:NodeWithScore
<Metadata
>[]
Defined in
packages/core/dist/schema/index.d.ts:192
stream
readonly
stream:boolean
Defined in
packages/core/dist/schema/index.d.ts:196
Accessors
delta
get
delta():string
Returns
string
Implementation of
ChatResponseChunk.delta
Defined in
packages/core/dist/schema/index.d.ts:206
response
get
response():string
Deprecated
Use message
instead.
Returns
string
Defined in
packages/core/dist/schema/index.d.ts:205
Methods
toString()
toString():
string
Returns a string representation of an object.
Returns
string
Defined in
packages/core/dist/schema/index.d.ts:207
fromChatResponse()
static
fromChatResponse(chatResponse
,sourceNodes
?):EngineResponse
Parameters
• chatResponse: ChatResponse
<object
>
• sourceNodes?: NodeWithScore
<Metadata
>[]
Returns
Defined in
packages/core/dist/schema/index.d.ts:200
fromChatResponseChunk()
static
fromChatResponseChunk(chunk
,sourceNodes
?):EngineResponse
Parameters
• chunk: ChatResponseChunk
• sourceNodes?: NodeWithScore
<Metadata
>[]
Returns
Defined in
packages/core/dist/schema/index.d.ts:201
fromResponse()
static
fromResponse(response
,stream
,sourceNodes
?):EngineResponse
Parameters
• response: string
• stream: boolean
• sourceNodes?: NodeWithScore
<Metadata
>[]
Returns
Defined in
packages/core/dist/schema/index.d.ts:198