Class: SimpleChatEngine
SimpleChatEngine is the simplest possible chat engine. Useful for using your own custom prompts.
Implements
Constructors
constructor
• new SimpleChatEngine(init?
)
Parameters
Name | Type |
---|---|
init? | Partial <SimpleChatEngine > |
Defined in
packages/core/src/ChatEngine.ts:51
Properties
chatHistory
• chatHistory: ChatMessage
[]
Defined in
packages/core/src/ChatEngine.ts:48
llm
• llm: LLM
Defined in
packages/core/src/ChatEngine.ts:49
Methods
chat
▸ chat<T
, R
>(message
, chatHistory?
, streaming?
): Promise
<R
>
Send message along with the class's current chat history to the LLM.