-
Notifications
You must be signed in to change notification settings - Fork 701
Python: DevUI: support having both an agent and a workflow with the same in discovery #2023
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
Python: DevUI: support having both an agent and a workflow with the same in discovery #2023
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
e8bfc7a to
54266ec
Compare
jeffhandley
left a comment
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.
Code review looks good. I'll fire off some end-to-end tests, but don't block on that.


Motivation and Context
Currently, if we have both an agent and a workflow with the same id, the backend does not know which one the frontend is interested in when it requests entity info, so it must choose arbitrarily.
This PR adds an optional 'type' parameter which lets the backend distinguish.
This enables representing a workflow as both an agent (using
.AsAIAgent()) and as a workflow, with both views on the entity being visible in DevUI.This PR removes the 'hack' we had in place to prevent the devui from crashing:
Contribution Checklist