julep-ai / julep

Build AI agents and workflows with a simple API. Supabase for AI agents
https://julep.ai
Apache License 2.0
883 stars 69 forks source link

Enhanced the error messages #575

Open VivekGuruduttK28 opened 20 hours ago

VivekGuruduttK28 commented 20 hours ago

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 049d7eea196b74158e4fc4d83049656c7e7fa12e. It will automatically update as commits are pushed.