EngineResponse
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:5
sourceNodes
Section titled “sourceNodes”源节点:
undefined|NodeWithScore<Metadata>[]
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:6
metadata:
Metadata={}
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:8
消息:
ChatMessage
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:10
原始:
null|object
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:11
来自大语言模型的原始响应
如果LLM返回一个可迭代的数据块,这将是这些数据块的数组
readonly流:boolean
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:13
get response():
string
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:72
请使用 message 替代。
string
get delta():
string
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:76
string
fromResponse()
Section titled “fromResponse()”
staticfromResponse(response,stream,sourceNodes):EngineResponse
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:26
string
boolean
sourceNodes
Section titled “sourceNodes”EngineResponse
fromChatResponse()
Section titled “fromChatResponse()”
staticfromChatResponse(chatResponse,sourceNodes?):EngineResponse
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:51
chatResponse
Section titled “chatResponse”EngineResponse
fromChatResponseChunk()
Section titled “fromChatResponseChunk()”
staticfromChatResponseChunk(chunk,sourceNodes?):EngineResponse
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:58
EngineResponse
toString()
Section titled “toString()”toString():
string
定义于:.build/typescript/packages/core/src/schema/type/engine–response.ts:85
返回对象的字符串表示形式。
string