Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve max steps failure description #1296

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

LawyZheng
Copy link
Collaborator

@LawyZheng LawyZheng commented Dec 2, 2024

Important

Update failure_reason in handle_completed_step() in agent.py to include potential reasons for exceeding max steps.

  • Behavior:
    • Update failure_reason in handle_completed_step() in agent.py to include potential reasons for exceeding max steps.
    • New message format: "Reached the maximum steps ({max_steps_per_run}). Possible failure reasons: {failure_reason}".

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

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 90f70bf in 32 seconds

More details
  • Looked at 16 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_4M89TtNTGZdQNbEQ


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

skyvern/forge/agent.py Outdated Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on bae9d46 in 10 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/agent.py:1964
  • Draft comment:
    Consider rephrasing the message for clarity:
f"Maximum steps ({max_steps_per_run}) reached. Possible reasons for failure: {failure_reason}"
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description indicates a change in the failure message format for max steps exceeded. The change in the code reflects this update, but the message could be further improved for clarity.

Workflow ID: wflow_BSSSzM7MSGA6Ahqs


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@LawyZheng LawyZheng merged commit 6c1b2a6 into main Dec 2, 2024
2 checks passed
@LawyZheng LawyZheng deleted the lawy/improve-max-steps-description branch December 2, 2024 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant