Python: DevUI fixes : Add multimodal input support for workflows and refactor chat input#2593
Merged
victordibia merged 5 commits intomainfrom Dec 3, 2025
Merged
Python: DevUI fixes : Add multimodal input support for workflows and refactor chat input#2593victordibia merged 5 commits intomainfrom
victordibia merged 5 commits intomainfrom
Conversation
This PR adds support for multimodal content (images, files) in workflow inputs and refactors the chat input into a reusable component. ## Multimodal Workflow Support - Add `isChatMessageSchema()` to detect ChatMessage input schemas - Update `RunWorkflowButton` to use `ChatMessageInput` for ChatMessage workflows - Wrap multimodal content in OpenAI message format for backend processing - Add `_is_openai_multimodal_format()` to detect OpenAI ResponseInputParam - Update `_parse_workflow_input()` to route multimodal input through existing `_convert_input_to_chat_message()` converter ## Reusable ChatMessageInput Component - Extract chat input logic from agent-view into `ChatMessageInput` component - Support file upload, drag & drop, paste handling, and attachments - Add `useDragDrop` hook for parent-level drag handling with full-area drop zones - Refactor agent-view to use the new shared component ## Other Improvements - Add `isStreaming` prop to executor nodes for animation control - Clean up unused imports and state variables in agent-view - Add tests for multimodal workflow input handling Fixes workflow input not receiving images when using AgentExecutor nodes.
Member
eavanvalkenburg
approved these changes
Dec 3, 2025
alliscode
approved these changes
Dec 3, 2025
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
…refactor chat input (microsoft#2593) * show app version in devui .NET: Python: Improved Versioning for DevUI Fixes microsoft#2059 * feat: Add multimodal input support for workflows and refactor chat input This PR adds support for multimodal content (images, files) in workflow inputs and refactors the chat input into a reusable component. ## Multimodal Workflow Support - Add `isChatMessageSchema()` to detect ChatMessage input schemas - Update `RunWorkflowButton` to use `ChatMessageInput` for ChatMessage workflows - Wrap multimodal content in OpenAI message format for backend processing - Add `_is_openai_multimodal_format()` to detect OpenAI ResponseInputParam - Update `_parse_workflow_input()` to route multimodal input through existing `_convert_input_to_chat_message()` converter ## Reusable ChatMessageInput Component - Extract chat input logic from agent-view into `ChatMessageInput` component - Support file upload, drag & drop, paste handling, and attachments - Add `useDragDrop` hook for parent-level drag handling with full-area drop zones - Refactor agent-view to use the new shared component ## Other Improvements - Add `isStreaming` prop to executor nodes for animation control - Clean up unused imports and state variables in agent-view - Add tests for multimodal workflow input handling Fixes workflow input not receiving images when using AgentExecutor nodes. * add self loop edge, fix microsoft#2470 * fix test
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.
This PR adds support for multimodal content (images, files) in workflow
inputs and refactors the chat input into a reusable component.
Multimodal Workflow Support
isChatMessageSchema()to detect ChatMessage input schemasRunWorkflowButtonto useChatMessageInputfor ChatMessage workflows_is_openai_multimodal_format()to detect OpenAI ResponseInputParam_parse_workflow_input()to route multimodal input throughexisting
_convert_input_to_chat_message()converterReusable ChatMessageInput Component
ChatMessageInputcomponentuseDragDrophook for parent-level drag handling with full-areadrop zones
Uploads (same component used in agent view) can be passed to workflows with agentexecutors as start node

Also fixes #2470 , to show selfloops

Other Improvements
isStreamingprop to executor nodes for animation controlFixes workflow input not receiving images when using AgentExecutor nodes.
Motivation and Context
Description
Contribution Checklist