Skyvern-AI / skyvern

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

Better handling of failed to summarize failure reason #1218

Closed wintonzheng closed 1 week ago

wintonzheng commented 1 week ago

[!IMPORTANT] Improve logging and error handling in summary_failure_reason_for_max_steps() in agent.py.

  • Logging:
    • Change log level from exception to warning in summary_failure_reason_for_max_steps() in agent.py.
    • Add task_id and step_id to log message for better traceability.
  • Error Handling:
    • Add fallback return value in summary_failure_reason_for_max_steps() to return last step's action results if an exception occurs.

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