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

fix(agents-api): Change wrapped assertion error status code to 400 #838

Merged
merged 4 commits into from
Nov 15, 2024

Conversation

HamadaSalhab
Copy link
Contributor

@HamadaSalhab HamadaSalhab commented Nov 15, 2024

Important

Add handling for AssertionError in prepare_execution_input.py, mapping it to HTTP 429 error.

  • Error Handling:
    • Add handling for AssertionError in prepare_execution_input.py, mapping it to HTTPException with status code 429.

This description was created by Ellipsis for 901bec8. 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 5c46717 in 57 seconds

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

Workflow ID: wflow_xPGnPulUpZUKRvEe


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.

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 901bec8 in 8 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. agents-api/agents_api/models/execution/prepare_execution_input.py:34
  • Draft comment:
    The PR description mentions mapping AssertionError to HTTP 429, but the code changes map it to HTTP 400. Please ensure the code aligns with the intended behavior described in the PR.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_jmSci51b5hMjAz4D


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

@HamadaSalhab HamadaSalhab changed the title Fix Typo fix(agents-api): Change wrapped assertion error status code to 400 Nov 15, 2024
@HamadaSalhab HamadaSalhab merged commit 9bf691f into dev Nov 15, 2024
9 checks passed
@HamadaSalhab HamadaSalhab deleted the x/prepare-execution-assertion branch November 15, 2024 13:17
@HamadaSalhab HamadaSalhab restored the x/prepare-execution-assertion branch November 16, 2024 08:32
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