This commit is contained in:
Shuchang Zheng
2025-09-11 18:10:05 -07:00
committed by GitHub
parent 7a8974f6c7
commit 0e2aecc75d
11 changed files with 137 additions and 113 deletions

View File

@@ -3800,7 +3800,7 @@ async def _get_input_or_select_context(
starter=element_handle,
frame=skyvern_element.get_frame_id(),
)
clean_up_func = app.AGENT_FUNCTION.cleanup_element_tree_factory()
clean_up_func = app.AGENT_FUNCTION.cleanup_element_tree_factory(step=step)
element_tree = await clean_up_func(skyvern_element.get_frame(), "", copy.deepcopy(element_tree))
element_tree_trimmed = trim_element_tree(copy.deepcopy(element_tree))
element_tree_builder = ScrapedPage(

View File

@@ -741,6 +741,7 @@ async def generate_cua_fallback_actions(
action_response = await app.LLM_API_HANDLER(
prompt=fallback_action_prompt,
prompt_name="cua-fallback-action",
step=step,
)
LOG.info("Fallback action response", action_response=action_response)
skyvern_action_type = action_response.get("action")