The current chat history for each participant is stored in memory as a chat_history array.
Configure the DialogueHistory to be stored into a db backend, like SQLite using strategy pattern
Setup the participants to fetch entire history from the db backend, converting to specific format on the fly:
# participant
def respond() # only need to pass in pointer to db?
chat_history = [convert(msg) for msg in dialogue_history]
response = llm.call(chat_history)
return response
The current chat history for each participant is stored in memory as a chat_history array.
Configure the DialogueHistory to be stored into a db backend, like SQLite using strategy pattern
Setup the participants to fetch entire history from the db backend, converting to specific format on the fly:
from copilot:
Django ORM: