module

Crig::Memory::ConversationMemory

A persistent conversation history backend.

Implementors store an ordered list of Messages per conversation_id. Rig invokes load before sending a prompt and append after a successful turn.

Instance methods

append(conversation_id : String, messages : Array(Crig::Completion::Message)) : Nil
Source
clear(conversation_id : String) : Nil
Source
load(conversation_id : String) : Array(Crig::Completion::Message)
Source