Class: SimpleChatEngine
SimpleChatEngine is the simplest possible chat engine. Useful for using your own custom prompts.
Implements
Constructors
constructor
• new SimpleChatEngine(init?
): SimpleChatEngine
Parameters
Name | Type |
---|---|
init? | Partial <SimpleChatEngine > |
Returns
Defined in
packages/core/src/engines/chat/SimpleChatEngine.ts:26
Properties
chatHistory
• chatHistory: ChatHistory
Defined in
packages/core/src/engines/chat/SimpleChatEngine.ts:23
llm
• llm: LLM
<Record
<string
, unknown
>>
Defined in
packages/core/src/engines/chat/SimpleChatEngine.ts:24
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
>>
Implementation of
Defined in
packages/core/src/engines/chat/SimpleChatEngine.ts:31
▸ chat(params
): Promise
<Response
>
Parameters
Name | Type |
---|---|
params | ChatEngineParamsNonStreaming |
Returns
Promise
<Response
>
Implementation of
Defined in
packages/core/src/engines/chat/SimpleChatEngine.ts:32