Skip to content

EngineResponse

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:5

sourceNodes: undefined | NodeWithScore<Metadata>[]

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:6


metadata: Metadata = {}

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:8


message: ChatMessage

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:10

ChatResponse.message


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

ChatResponse.raw


readonly stream: boolean

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:13

get response(): string

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:72

Use message instead.

string


get delta(): string

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:76

string

ChatResponseChunk.delta

static fromResponse(response, stream, sourceNodes): EngineResponse

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:26

string

boolean

NodeWithScore<Metadata>[]

EngineResponse


static fromChatResponse(chatResponse, sourceNodes?): EngineResponse

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:51

ChatResponse

NodeWithScore<Metadata>[]

EngineResponse


static fromChatResponseChunk(chunk, sourceNodes?): EngineResponse

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:58

ChatResponseChunk

NodeWithScore<Metadata>[]

EngineResponse


toString(): string

Defined in: .build/typescript/packages/core/src/schema/type/engine–response.ts:85

Returns a string representation of an object.

string