Replace "assistant" role with "you" when sumbitting to memory agent.

This commit is contained in:
Toran Bruce Richards
2023-04-30 14:26:09 +12:00
parent 88b2d5fb2d
commit 0bea5e38a4

View File

@@ -62,6 +62,11 @@ def update_running_summary(new_events: List[Dict]) -> str:
global current_memory
# Replace "assistant" with "you". This produces much better first person past tense results.
for event in new_events:
if event["role"] == "assistant":
event["role"] = "you"
prompt = f'''Your task is to create a concise running summary of actions in the provided text, focusing on key and potentially important information to remember.
You will receive the current summary and the latest development. Combine them, adding relevant key information from the latest development in 1st person past tense and keeping the summary concise.