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/core/chat-engine/dist/index.d.ts:101
Properties
llm
llm:
LLM
<object
,object
>
Defined in
packages/core/chat-engine/dist/index.d.ts:99
memory
memory:
BaseMemory
<object
>
Defined in
packages/core/chat-engine/dist/index.d.ts:98
Accessors
chatHistory
Get Signature
get chatHistory():
ChatMessage
<object
>[] |Promise
<ChatMessage
<object
>[]>
Returns
ChatMessage
<object
>[] | Promise
<ChatMessage
<object
>[]>
Implementation of
Defined in
packages/core/chat-engine/dist/index.d.ts:100
Methods
chat()
chat(params)
chat(
params
):Promise
<EngineResponse
>
Parameters
• params: NonStreamingChatEngineParams
<object
>
Returns
Promise
<EngineResponse
>
Implementation of
Defined in
packages/core/chat-engine/dist/index.d.ts:102
chat(params)
chat(
params
):Promise
<AsyncIterable
<EngineResponse
,any
,any
>>
Parameters
• params: StreamingChatEngineParams
<object
>
Returns
Promise
<AsyncIterable
<EngineResponse
, any
, any
>>
Implementation of
Defined in
packages/core/chat-engine/dist/index.d.ts:103
reset()
reset():
void
Returns
void
Defined in
packages/core/chat-engine/dist/index.d.ts:104