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
Name | Type |
---|---|
params | ChatEngineParamsStreaming |
Returns
Promise
<AsyncIterable
<Response
>>
Defined in
packages/core/src/engines/chat/types.ts:35
▸ chat(params
): Promise
<Response
>
Parameters
Name | Type |
---|---|
params | ChatEngineParamsNonStreaming |
Returns
Promise
<Response
>
Defined in
packages/core/src/engines/chat/types.ts:36
reset
▸ reset(): void
Resets the chat history so that it's empty.
Returns
void