EngineResponse
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:5
Implements
Section titled “Implements”Properties
Section titled “Properties”sourceNodes
Section titled “sourceNodes”sourceNodes:
undefined|NodeWithScore<Metadata>[]
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:6
metadata
Section titled “metadata”metadata:
Metadata={}
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:8
message
Section titled “message”message:
ChatMessage
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:10
Implementation of
Section titled “Implementation of”raw:
null|object
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:11
Raw response from the LLM
If LLM response an iterable of chunks, this will be an array of those chunks
Implementation of
Section titled “Implementation of”stream
Section titled “stream”
readonlystream:boolean
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:13
Accessors
Section titled “Accessors”response
Section titled “response”Get Signature
Section titled “Get Signature”get response():
string
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:72
Deprecated
Section titled “Deprecated”Use message instead.
Returns
Section titled “Returns”string
Get Signature
Section titled “Get Signature”get delta():
string
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:76
Returns
Section titled “Returns”string
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”fromResponse()
Section titled “fromResponse()”
staticfromResponse(response,stream,sourceNodes):EngineResponse
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:26
Parameters
Section titled “Parameters”response
Section titled “response”string
stream
Section titled “stream”boolean
sourceNodes
Section titled “sourceNodes”Returns
Section titled “Returns”EngineResponse
fromChatResponse()
Section titled “fromChatResponse()”
staticfromChatResponse(chatResponse,sourceNodes?):EngineResponse
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:51
Parameters
Section titled “Parameters”chatResponse
Section titled “chatResponse”sourceNodes?
Section titled “sourceNodes?”Returns
Section titled “Returns”EngineResponse
fromChatResponseChunk()
Section titled “fromChatResponseChunk()”
staticfromChatResponseChunk(chunk,sourceNodes?):EngineResponse
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:58
Parameters
Section titled “Parameters”sourceNodes?
Section titled “sourceNodes?”Returns
Section titled “Returns”EngineResponse
toString()
Section titled “toString()”toString():
string
Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:85
Returns a string representation of an object.
Returns
Section titled “Returns”string