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/core/chat-engine/dist/index.d.ts:104

Properties

llm

llm: LLM<object, object>

Defined in

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


memory

memory: BaseMemory<object>

Defined in

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

Accessors

chatHistory

Get Signature

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

Returns

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

Implementation of

BaseChatEngine.chatHistory

Defined in

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

Methods

chat()

chat(params)

chat(params): Promise<EngineResponse>

Parameters

params: NonStreamingChatEngineParams<object, object>

Returns

Promise<EngineResponse>

Implementation of

BaseChatEngine.chat

Defined in

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

chat(params)

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

Parameters

params: StreamingChatEngineParams<object, object>

Returns

Promise<AsyncIterable<EngineResponse, any, any>>

Implementation of

BaseChatEngine.chat

Defined in

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


reset()

reset(): void

Returns

void

Defined in

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