add action history even when empty (#1939)

This commit is contained in:
Shuchang Zheng
2025-03-14 10:15:42 -07:00
committed by GitHub
parent 882865ffed
commit 46eaa3545d
3 changed files with 3 additions and 4 deletions

View File

@@ -1563,7 +1563,7 @@ class ForgeAgent:
for action, results in actions_and_results
if len(results) > 0
]
return json.dumps(action_history) if action_history else ""
return json.dumps(action_history)
async def get_extracted_information_for_task(self, task: Task) -> dict[str, Any] | list | str | None:
"""