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 error message in create, delete agent #572

Open JeevaRamanathan opened 1 day ago

JeevaRamanathan commented 1 day ago

Partially fixes #568

Enhanced HTTPException in create_agent.py and delete_agent.py.

As this issue states, we aim to improve error messages throughout the agents-api. I believe this issue can accommodate multiple pull requests. Your suggestions are highly appreciated.


[!IMPORTANT] Enhanced error messages in create_agent.py and delete_agent.py for better clarity in HTTPException details.

  • Error Messages:
    • In create_agent.py, updated HTTPException detail to "Developer not found. Please ensure the provided auth token (which refers to your developer_id) is valid and the developer has the necessary permissions to create an agent."
    • In delete_agent.py, updated HTTPException detail to "The specified developer does not own the requested resource. Please verify the ownership or check if the developer ID is correct."

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