Package org.zenoda.chatant.adaptor
Class SimpleChatMemory
java.lang.Object
org.zenoda.chatant.adaptor.SimpleChatMemory
- All Implemented Interfaces:
ChatMemory
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(String conversationId, ChatMessage message) 存入新消息static SimpleChatMemory.Builderbuilder()getMessages(String conversationId) 获取记忆中的消息
-
Constructor Details
-
SimpleChatMemory
public SimpleChatMemory()
-
-
Method Details
-
addMessage
Description copied from interface:ChatMemory存入新消息- Specified by:
addMessagein interfaceChatMemory- Parameters:
message- 新消息
-
getMessages
Description copied from interface:ChatMemory获取记忆中的消息- Specified by:
getMessagesin interfaceChatMemory- Parameters:
conversationId- 对话ID- Returns:
- 消息列表
-
builder
-