fix unbound latest_action_screenshot_urls (#334)

This commit is contained in:
Shuchang Zheng
2024-05-16 20:52:48 -07:00
committed by GitHub
parent 2e86b41beb
commit 62e4f23ab3

View File

@@ -930,7 +930,7 @@ class ForgeAgent:
artifact_types=[ArtifactType.SCREENSHOT_ACTION],
n=SettingsManager.get_settings().TASK_RESPONSE_ACTION_SCREENSHOT_COUNT,
)
latest_action_screenshot_urls: list[str] | None = []
if latest_action_screenshot_artifacts:
latest_action_screenshot_urls = await app.ARTIFACT_MANAGER.get_share_links(
latest_action_screenshot_artifacts