Skip to content

Commit

Permalink
remove log: Building element tree (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Aug 7, 2024
1 parent c872b1e commit 9fd096c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions skyvern/forge/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,13 +955,6 @@ async def _build_and_record_step_prompt(
)
# TODO: we only use HTML element for now, introduce a way to switch in the future
element_tree_format = ElementTreeFormat.HTML
LOG.info(
"Building element tree",
task_id=task.task_id,
workflow_run_id=task.workflow_run_id,
format=element_tree_format,
)

element_tree_in_prompt: str = scraped_page.build_element_tree(element_tree_format)
extract_action_prompt = await self._build_extract_action_prompt(
task,
Expand Down
7 changes: 0 additions & 7 deletions skyvern/webeye/actions/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,13 +1269,6 @@ async def extract_information_for_navigation_goal(

# TODO: we only use HTML element for now, introduce a way to switch in the future
element_tree_format = ElementTreeFormat.HTML
LOG.info(
"Building element tree",
task_id=task.task_id,
workflow_run_id=task.workflow_run_id,
format=element_tree_format,
)

element_tree_in_prompt: str = scraped_page.build_element_tree(element_tree_format)

extract_information_prompt = prompt_engine.load_prompt(
Expand Down

0 comments on commit 9fd096c

Please sign in to comment.