Skyvern-AI / skyvern

Automate browser-based workflows with LLMs and Computer Vision
https://www.skyvern.com
GNU Affero General Public License v3.0
10.78k stars 739 forks source link

remove screenshot when check user goal #1147

Closed LawyZheng closed 3 weeks ago

LawyZheng commented 3 weeks ago

[!IMPORTANT] Remove screenshot step when checking user goal by updating check_user_goal_complete and related scraping functions to support optional screenshots.

  • Behavior:
    • check_user_goal_complete in agent.py now refreshes the page without taking a screenshot.
    • scrape_website and scrape_web_unsafe in scraper.py updated to accept with_screenshot parameter.
  • Classes:
    • ScrapedPage in scraper.py now has private attributes _browser_state, _clean_up_func, and _scrape_exclude.
  • Types:
    • Introduced ScrapeExcludeFunc in scraper.py for type clarity.
  • Misc:
    • Updated scrape_exclude type in app.py to ScrapeExcludeFunc.

This description was created by Ellipsis for 8bd282b3c02212edbb4a046a8db6d2a5c440e9ce. It will automatically update as commits are pushed.