shu/cua other action (#2154)

This commit is contained in:
Shuchang Zheng
2025-04-14 13:56:13 -07:00
committed by GitHub
parent e233359ad2
commit ff80125314
2 changed files with 7 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ Help the user decide what to do next based on the assistant's message. Here's th
Return the action to take next in the following JSON format:
{
"action": str // complete, terminate, solve_captcha, get_verification_code
"action": str // complete, terminate, solve_captcha, get_verification_code, other
"useful_information": str // If there is any useful information the assistant has provided that contributes to the user goal, put it here.
}

View File

@@ -1439,6 +1439,12 @@ async def handle_complete_action(
workflow_run_id=task.workflow_run_id,
)
action.verified = True
if not task.data_extraction_goal and verification_result.thoughts:
await app.DATABASE.update_task(
task.task_id,
organization_id=task.organization_id,
extracted_information=verification_result.thoughts,
)
return [ActionSuccess()]