-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Bug]: Workflow 'twoagents' is not among the defined enum values. #3037
Comments
Hi @TheAmazingRoderic , This error is due to an update in the db schema with v 0.1.0 +. autogenstudio ui --appdir /path/to/folder This will create a new db in the /path/to/folder using the right schema. See docs FAQ on how to specify directory https://microsoft.github.io/autogen/docs/autogen-studio/faqs#q-how-do-i-specify-the-directory-where-fileseg-database-are-stored |
Thank you @victordibia, I was able to repair the database. I reported because I believe it is a bug not to have the same validation/constraint of the schema applied on upload/insert into the database to prevent the situation. |
I do see the TBD in the typescript: autogen/samples/apps/autogen-studio/frontend/src/components/views/builder/workflow.tsx Line 287 in d00467c
And the commented code used previously: autogen/samples/apps/autogen-studio/frontend/src/components/views/builder/workflow.tsx Line 300 in d00467c
It seems it would be nice to catch this in back at the the DBManager.upcert |
Hi @RafalSebastian , Work is being done to improve migration of data across versions, but not yet supported so workflows from previous versions will not be compatible with v 0.1.0 +. With respect to multiple agents, the way to do that is to.
|
Any chance you can share the command line log that shows up when this error occurs? This will be helpful in debugging the issuel. |
Victor, the issue appears when trying to upload the previous version workflow json to the latest version of AutoGenStudio. As you said, it won't work and now I know why. Additionally it helped to create fresh conda env and new appdir (which wasn't necessary for clean installation). |
Describe the bug
Autogenstudio v0.1.2 allows the upload of an older workflow that defines workflowtype as twoagents. This breaks the app's ability to retrieve existing workflows, displaying
caused by
Additionally, deleting the workflow via the api fails with
Steps to reproduce
1 - Download workflow from AutogenStudio 0.0.56rc9
![Screenshot 2024-06-28 at 10 59 17 AM](https://private-user-images.githubusercontent.com/38758213/344237377-60dc9837-a1a4-40a1-a9aa-71758d10ecd1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5NDg1MzgsIm5iZiI6MTcxOTk0ODIzOCwicGF0aCI6Ii8zODc1ODIxMy8zNDQyMzczNzctNjBkYzk4MzctYTFhNC00MGExLWE5YWEtNzE3NThkMTBlY2QxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDE5MjM1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUyODk4Y2Q3NzJlMjViZDM3ODU1ZTMzZWRkMTgwYWM0N2UzZWZjMjY1NWZiZmQ0YjMzYTZjOTNlY2I1MmU4YWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lNrRnR2jMeU3PhOpkTh9aUdFMyX43_ues_m9r-fHv7I)
![Screenshot 2024-06-28 at 11 02 21 AM](https://private-user-images.githubusercontent.com/38758213/344238228-8f5f2920-17e4-4b2c-8fdf-7af985bb461b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5NDg1MzgsIm5iZiI6MTcxOTk0ODIzOCwicGF0aCI6Ii8zODc1ODIxMy8zNDQyMzgyMjgtOGY1ZjI5MjAtMTdlNC00YjJjLThmZGYtN2FmOTg1YmI0NjFiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDE5MjM1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI4OTBiNWNlZmY1NTA1YTZmMjQzNzFmYjMxYTY0ZDI4NWJmMWI3NWNlODY1NTk5MjZlNDNkNzQ5ZDYyMjczNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rledZwC1WYJy4kYYuJeDts7MUWtfapHHltt2V3Objko)
2 - Upload workflow into AutogenStudio v0.1.2 via the UI
3 - System no longer displays any workflows
4 - Attempt to remove offending workflow fails due to invalid workflowtype
Model Used
gpt-4
Expected Behavior
Validation of workflowtype upon upload
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: