-
Notifications
You must be signed in to change notification settings - Fork 262
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
[FEAT] Tool Export Validation #299
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that failing fast is also an option in case of a project with lot of prompts - we needn't wait for a while and throw the error. We'd unnecessarily build this JSON or make DB queries even after an invalid prompt is noted
@chandrasekharan-zipstack Yes, this makes sense. But in cases where one or more invalid prompts is stored in a single project, error surfacing each time export is clicked might not be a good user experience. |
Co-authored-by: Chandrasekharan M <[email protected]> Signed-off-by: harini-venkataraman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - left some NIT comments and error message enhancements which can be taken up for some easy wins on UX
backend/prompt_studio/prompt_studio_registry/prompt_studio_registry_helper.py
Show resolved
Hide resolved
backend/prompt_studio/prompt_studio_registry/prompt_studio_registry_helper.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Chandrasekharan M <[email protected]> Signed-off-by: harini-venkataraman <[email protected]>
|
What
This PR enables support for exporting only valid tools that have prompts and that are executed.
...
Why
This prevents export of dummy tools developed using Prompt Studio.
...
How
Adding validations to see if the Output Manager has a valid field against the prompt.
...
Can this PR break any existing features. If yes please list of possible items. If no please explain why. (PS: Admins do not merge the PR without this section filled)
...
Database Migrations
Not applicable.
...
Env Config
Not applicable.
...
Notes on Testing
...
Screenshots
GT
Checklist
I have read and understood the Contribution Guidelines.