Skip to content

Automate browser based workflows with AI

fix handling action log (#5113)

Shuchang Zhenge48671173635
diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py
index 37f4313b1..83b6fc4b1 100644
--- a/skyvern/webeye/actions/handler.py
+++ b/skyvern/webeye/actions/handler.py
@@ -535,7 +535,36 @@ class ActionHandler:
page: Page,
action: Action,
) -> list[ActionResult]:
- LOG.info("Handling action", action=action)
+ LOG.info(
+ "Handling action",
+ action_type=action.action_type,
+ action_id=action.action_id,
+ status=action.status,
+ source_action_id=action.source_action_id,
+ step_order=action.step_order,
+ action_order=action.action_order,
+ confidence_float=action.confidence_float,
+ description=action.description,
+ reasoning=action.reasoning,
+ intention=action.intention,
+ response=action.response,
+ element_id=action.element_id,
+ errors=action.errors,
+ file_name=action.file_name,
+ file_url=action.file_url,
+ download=action.download,
+ download_triggered=action.download_triggered,
+ is_upload_file_tag=action.is_upload_file_tag,
+ text=action.text,
+ input_or_select_context=action.input_or_select_context,
+ option=action.option,
+ is_checked=action.is_checked,
+ verified=action.verified,
+ click_context=action.click_context,
+ totp_timing_info=action.totp_timing_info,
+ has_mini_agent=action.has_mini_agent,
+ skip_auto_complete_tab=action.skip_auto_complete_tab,
+ )
actions_result: list[ActionResult] = []
llm_caller = LLMCallerManager.get_llm_caller(task.task_id)
try: