no need to verify completion when we decide to complete according to CUA response; extract data based on CUA reponse as well (#2156)
This commit is contained in:
@@ -2986,6 +2986,7 @@ async def extract_information_for_navigation_goal(
|
||||
html_need_skyvern_attrs=False,
|
||||
navigation_goal=task.navigation_goal,
|
||||
navigation_payload=task.navigation_payload,
|
||||
previous_extracted_information=task.extracted_information,
|
||||
data_extraction_goal=task.data_extraction_goal,
|
||||
extracted_information_schema=task.extracted_information_schema,
|
||||
current_url=scraped_page_refreshed.url,
|
||||
|
||||
@@ -339,15 +339,23 @@ async def parse_cua_actions(
|
||||
)
|
||||
if skyvern_action_type == "complete":
|
||||
if not task.data_extraction_goal and useful_information:
|
||||
LOG.info(
|
||||
"Updating task with useful information",
|
||||
task_id=task.task_id,
|
||||
organization_id=task.organization_id,
|
||||
useful_information=useful_information,
|
||||
assistant_message=assistant_message,
|
||||
reasoning=reasoning,
|
||||
)
|
||||
await app.DATABASE.update_task(
|
||||
task.task_id,
|
||||
organization_id=task.organization_id,
|
||||
extracted_information=useful_information,
|
||||
extracted_information=assistant_message,
|
||||
)
|
||||
action = CompleteAction(
|
||||
reasoning=reasoning,
|
||||
intention=reasoning,
|
||||
verified=False,
|
||||
verified=True,
|
||||
data_extraction_goal=task.data_extraction_goal,
|
||||
)
|
||||
elif skyvern_action_type == "terminate":
|
||||
|
||||
Reference in New Issue
Block a user