Skip to main content

Class: SimpleChatEngine

SimpleChatEngine is the simplest possible chat engine. Useful for using your own custom prompts.

Implements

Constructors

new SimpleChatEngine()

new SimpleChatEngine(init?): SimpleChatEngine

Parameters

init?: Partial<SimpleChatEngine>

Returns

SimpleChatEngine

Defined in

packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:28

Properties

llm

llm: LLM<object, object>

Defined in

packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:22


memory

memory: BaseMemory<object>

Defined in

packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:21

Accessors

chatHistory

get chatHistory(): ChatMessage<object>[] | Promise<ChatMessage<object>[]>

Returns

ChatMessage<object>[] | Promise<ChatMessage<object>[]>

Implementation of

BaseChatEngine.chatHistory

Defined in

packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:24

Methods

chat()

chat(params)

chat(params): Promise<EngineResponse>

Parameters

params: NonStreamingChatEngineParams<object>

Returns

Promise<EngineResponse>

Implementation of

BaseChatEngine.chat

Defined in

packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:33

chat(params)

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

Parameters

params: StreamingChatEngineParams<object>

Returns

Promise<AsyncIterable<EngineResponse, any, any>>

Implementation of

BaseChatEngine.chat

Defined in

packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:34


reset()

reset(): void

Returns

void

Defined in

packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:79