CUA feature - extraction data combined assisstant's message (#2157)

This commit is contained in:
Shuchang Zheng
2025-04-14 22:54:41 -07:00
committed by GitHub
parent 18f24745d0
commit cac9e6a61a
4 changed files with 17 additions and 19 deletions

View File

@@ -1165,7 +1165,9 @@ class ForgeAgent:
):
working_page = await browser_state.must_get_working_page()
# refresh task in case the extracted information is updated previously
task = await app.DATABASE.get_task(task.task_id, task.organization_id)
refreshed_task = await app.DATABASE.get_task(task.task_id, task.organization_id)
assert refreshed_task is not None
task = refreshed_task
extract_action = await self.create_extract_action(task, step, scraped_page)
extract_results = await ActionHandler.handle_action(
scraped_page, task, step, working_page, extract_action