mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
add docstring for in memory class (#7160)
This commit is contained in:
parent
898087d02c
commit
b39017dc11
@ -9,6 +9,11 @@ from langchain.schema.messages import BaseMessage
|
|||||||
|
|
||||||
|
|
||||||
class ChatMessageHistory(BaseChatMessageHistory, BaseModel):
|
class ChatMessageHistory(BaseChatMessageHistory, BaseModel):
|
||||||
|
"""In memory implementation of chat message history.
|
||||||
|
|
||||||
|
Stores messages in an in memory list.
|
||||||
|
"""
|
||||||
|
|
||||||
messages: List[BaseMessage] = []
|
messages: List[BaseMessage] = []
|
||||||
|
|
||||||
def add_message(self, message: BaseMessage) -> None:
|
def add_message(self, message: BaseMessage) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user