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