We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eb8949 commit 2717d3aCopy full SHA for 2717d3a
src/utils/utils.py
@@ -200,3 +200,11 @@ async def capture_screenshot(browser_context):
200
return encoded
201
except Exception as e:
202
return None
203
+
204
+def download_agent_history(save_agent_history_path):
205
+ history_file = os.path.join(save_agent_history_path, "AgentHistory.json")
206
+ history_file = os.path.abspath(history_file) # Convert to absolute path
207
+ if os.path.exists(history_file):
208
+ return history_file
209
+ else:
210
+ return None
0 commit comments