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:26

Properties

llm

llm: LLM<object, object>

Defined in

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


memory

memory: BaseMemory<object>

Defined in

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

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:22

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:31

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:32


reset()

reset(): void

Returns

void

Defined in

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