mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Provide default new_events value when empty.
This commit is contained in:
@@ -67,6 +67,10 @@ def update_running_summary(new_events: List[Dict]) -> str:
|
||||
if event["role"] == "assistant":
|
||||
event["role"] = "you"
|
||||
|
||||
# This can happen at any point during execturion, not just the beginning
|
||||
if (len(new_events) == 0):
|
||||
new_events = "Nothing new happened."
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user