Preparing search index...
The search index is not available
LangChain.js - v0.1.35
LangChain.js
langchain-core/utils/testing
FakeChatMessageHistory
Class FakeChatMessageHistory
Base class for all chat message histories. All chat message histories should extend this class.
Hierarchy (
view full
)
BaseChatMessageHistory
FakeChatMessageHistory
Index
Constructors
constructor
Properties
messages
Methods
addAIChat
Message
add
Message
add
User
Message
clear
get
Messages
toJSON
toJSONNot
Implemented
Constructors
constructor
new
Fake
Chat
Message
History
(
)
:
FakeChatMessageHistory
Returns
FakeChatMessageHistory
Properties
messages
messages
:
BaseMessage
[]
= []
Methods
addAIChat
Message
addAIChat
Message
(
message
)
:
Promise
<
void
>
Parameters
message
:
string
Returns
Promise
<
void
>
add
Message
add
Message
(
message
)
:
Promise
<
void
>
Parameters
message
:
BaseMessage
Returns
Promise
<
void
>
add
User
Message
add
User
Message
(
message
)
:
Promise
<
void
>
Parameters
message
:
string
Returns
Promise
<
void
>
clear
clear
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
Messages
get
Messages
(
)
:
Promise
<
BaseMessage
[]
>
Returns
Promise
<
BaseMessage
[]
>
toJSON
toJSON
(
)
:
Serialized
Returns
Serialized
toJSONNot
Implemented
toJSONNot
Implemented
(
)
:
SerializedNotImplemented
Returns
SerializedNotImplemented
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
constructor
messages
addAIChat
Message
add
Message
add
User
Message
clear
get
Messages
toJSON
toJSONNot
Implemented
LangChain.js - v0.1.35
Loading...
Base class for all chat message histories. All chat message histories should extend this class.