Python: Default DevUI workflows to string input when start node is auto-wrapped agent#1143
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a bug where DevUI workflows with auto-wrapped agent start nodes don't properly determine the expected input type, causing the UI to not display input configuration options. The fix defaults the input type to string when the start executor is detected as an agent.
- Adds helper functions to extract and select input types from executors
- Implements fallback to string input type when auto-wrapped agents are detected
- Adds comprehensive test coverage for the new input type detection logic
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
python/packages/devui/agent_framework_devui/_server.py |
Adds input type extraction and selection helper functions, updates entity info endpoint to use new logic with string fallback |
python/packages/devui/agent_framework_devui/_executor.py |
Refactors workflow input parsing to use centralized input type detection methods |
python/packages/devui/tests/test_server.py |
Adds unit tests for the new input type extraction and selection functions |
python/packages/devui/tests/test_execution.py |
Adds unit tests for executor input type detection and workflow input parsing methods |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Contributor
ekzhu
approved these changes
Oct 3, 2025
victordibia
approved these changes
Oct 3, 2025
victordibia
added a commit
to victordibia/agent-framework
that referenced
this pull request
Oct 3, 2025
Merged PR microsoft#1143 (workflow input type handling) with local DevUI improvements. - Resolved _server.py conflict by keeping _utils.generate_input_schema() approach - Enhanced _utils._parse_dict_input() with primitive type extraction from PR microsoft#1143 - Preserved all PR microsoft#1143 functionality: str/dict type prioritization for workflows - All tests passing (7 from PR microsoft#1143 + existing)
ReubenBond
pushed a commit
to ReubenBond/agent-framework
that referenced
this pull request
Oct 28, 2025
…to-wrapped agent (microsoft#1143) * DevUI workflows default to string input when start node is AgentExecutor * Remove unnecessary sample * Fix lint issue
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
…to-wrapped agent (microsoft#1143) * DevUI workflows default to string input when start node is AgentExecutor * Remove unnecessary sample * Fix lint issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Right now, if running a workflow that has the start executor as an agent, DevUI doesn't properly determine the type of input expected, and will not show the ability to configure the input. To unblock, defaulting this to be a string.
Further work would be needed to support complex inputs like images, or other types.
Description
Contribution Checklist