Crig::Memory::InMemoryConversationMemory
Inherits Crig::Memory::ConversationMemory < Reference < Object
A simple thread-safe in-memory ConversationMemory backed by a Hash.
Messages are stored in process memory only and lost on restart.
Constructors
new
SourceInstance methods
Append messages to the conversation identified by conversation_id.
Load the full conversation history for conversation_id. Returns an empty Array if the conversation has no stored messages.
with_filter(filter : MessageFilter) : self
Apply a filter to the loaded message list on every load.