Skip to main content

Class: abstract BaseChatEngine

Extended by

Constructors

new BaseChatEngine()

new BaseChatEngine(): BaseChatEngine

Returns

BaseChatEngine

Properties

chatHistory

abstract chatHistory: ChatMessage[] | Promise<ChatMessage[]>

Defined in

packages/core/chat-engine/dist/index.d.ts:21

Methods

chat()

chat(params)

abstract chat(params): Promise<EngineResponse>

Parameters

params: NonStreamingChatEngineParams<object>

Returns

Promise<EngineResponse>

Defined in

packages/core/chat-engine/dist/index.d.ts:19

chat(params)

abstract chat(params): Promise<AsyncIterable<EngineResponse, any, any>>

Parameters

params: StreamingChatEngineParams<object>

Returns

Promise<AsyncIterable<EngineResponse, any, any>>

Defined in

packages/core/chat-engine/dist/index.d.ts:20