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

Enhanced the error messages #575

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Enhanced the error messages #575

merged 2 commits into from
Oct 4, 2024

Conversation

VivekGuruduttK28
Copy link
Contributor

@VivekGuruduttK28 VivekGuruduttK28 commented Oct 3, 2024

This PR is to fix the issue mentioned in #572
I have made the required changes in the files create_agent.py, create_or_update_agent.py and delete_agent.py. I have added descriptions to QueryException, ValidationError and TypeError.


Important

Enhanced error messages for exceptions in agent-related files to provide detailed guidance on potential issues.

  • Error Messages:
    • Enhanced error messages for QueryException, ValidationError, and TypeError in create_agent.py, create_or_update_agent.py, and delete_agent.py.
    • QueryException: Now includes a detailed message about potential causes related to database query failures.
    • ValidationError: Provides guidance on checking input data for missing or incorrect fields.
    • TypeError: Describes type mismatch issues and suggests reviewing input data types.

This description was created by Ellipsis for 049d7ee. 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.

👍 Looks good to me! Reviewed everything up to 049d7ee in 9 seconds

More details
  • Looked at 53 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. agents-api/agents_api/models/agent/create_agent.py:35
  • Draft comment:
    The error message for QueryException is too generic. Consider making it more specific to the operation being performed to aid in debugging.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The error message for the QueryException is too generic and might not provide enough context for debugging. It should be more specific to the operation being performed.
2. agents-api/agents_api/models/agent/create_or_update_agent.py:30
  • Draft comment:
    The error message for QueryException is too generic. Consider making it more specific to the operation being performed to aid in debugging.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The error message for the QueryException is too generic and might not provide enough context for debugging. It should be more specific to the operation being performed.
3. agents-api/agents_api/models/agent/delete_agent.py:35
  • Draft comment:
    The error message for QueryException is too generic. Consider making it more specific to the operation being performed to aid in debugging.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The error message for the QueryException is too generic and might not provide enough context for debugging. It should be more specific to the operation being performed.

Workflow ID: wflow_EJ3MAHIVap8zj4ZC


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

@creatorrr creatorrr merged commit 9c38da1 into julep-ai:dev Oct 4, 2024
2 of 3 checks passed
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.

2 participants