Nhảy tới nội dung

Interface: ChatEngine

A ChatEngine is used to handle back and forth chats between the application and the LLM.

Implemented by

Methods

chat

chat(params): Promise<AsyncIterable<Response>>

Send message along with the class's current chat history to the LLM.

Parameters

NameType
paramsChatEngineParamsStreaming

Returns

Promise<AsyncIterable<Response>>

Defined in

packages/core/src/engines/chat/types.ts:41

chat(params): Promise<Response>

Parameters

NameType
paramsChatEngineParamsNonStreaming

Returns

Promise<Response>

Defined in

packages/core/src/engines/chat/types.ts:42


reset

reset(): void

Resets the chat history so that it's empty.

Returns

void

Defined in

packages/core/src/engines/chat/types.ts:47