Python: .NET Workflows - Support fidelity when converting to and from ChatMessage in declarative workflows#3021
Closed
crickman wants to merge 10 commits intocrickman/dependency-update-declarative-objectmodelfrom
Conversation
crickman
commented
Dec 26, 2025
| private static string InferMediaType(string value) | ||
| { | ||
| // Base64 encoded content includes media type | ||
| if (value.StartsWith("data:", StringComparison.OrdinalIgnoreCase)) |
Contributor
Author
There was a problem hiding this comment.
Note: ImageUrl is constrained to image types for public url, but allows for PDF for base64 encoded data: urls.
markwallace-microsoft
approved these changes
Jan 8, 2026
* Renamed Github to GitHub * Small fix * Updated package versions
…onse for Response Format (#3305) * added generic types to ChatOptions and ChatResponse/AgentResponse for response format * fix typevar import * fix for older python versions * fix missing import * fixed imports * fixed mypy * mypy fix
ChatMessage in declarative workflowsChatMessage in declarative workflows
4 tasks
Contributor
|
Closing this PR as it's been checked in as part of #3505 |
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
Ensures media-type and message id are persisted when converting between
ChatMessageand the object model representation.Fixes: #3020
Note: Relies on dependency update in PR #3017 (rebase this PR to
mainafter merged)Description
MediaTypeContribution Checklist