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
Defined in
packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:25
Properties
chatHistory
chatHistory:
ChatHistory
<object
>
Defined in
packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:22
llm
llm:
LLM
<object
,object
>
Defined in
packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:23
Methods
chat()
chat(params)
chat(
params
):Promise
<AsyncIterable
<EngineResponse
>>
Send message along with the class's current chat history to the LLM.
Parameters
• params: ChatEngineParamsStreaming
Returns
Promise
<AsyncIterable
<EngineResponse
>>
Implementation of
Defined in
packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:30
chat(params)
chat(
params
):Promise
<EngineResponse
>
Send message along with the class's current chat history to the LLM.
Parameters
• params: ChatEngineParamsNonStreaming
Returns
Promise
<EngineResponse
>
Implementation of
Defined in
packages/llamaindex/src/engines/chat/SimpleChatEngine.ts:33
reset()
reset():
void
Resets the chat history so that it's empty.
Returns
void