Interface: ChatEngine<R, AR>
A ChatEngine is used to handle back and forth chats between the application and the LLM.
Type parameters
• R = Response
• AR extends AsyncIterable
<unknown
> = AsyncIterable
<R
>
Methods
chat()
chat(params)
chat(
params
):Promise
<AR
>
Send message along with the class's current chat history to the LLM.