Merge branch 'summary_memory' of https://github.com/torantulino/auto-gpt into summary_memory

This commit is contained in:
Toran Bruce Richards
2023-04-30 14:54:34 +12:00

View File

@@ -9,7 +9,7 @@ def get_newly_trimmed_messages(
full_message_history: List[Dict[str, str]], current_context: List[Dict[str, str]], last_memory_index: int) -> Tuple[List[Dict[str, str]], int]:
"""
This function returns a list of dictionaries contained in full_message_history
with an index higher than last_memory_index that are absent from current_context, and the new index.
with an index higher than prev_index that are absent from current_context.
Args:
full_message_history (list): A list of dictionaries representing the full message history.