Skip to content

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
crickman/messaging-handling-fix-declarative-workflows
Closed

Python: .NET Workflows - Support fidelity when converting to and from ChatMessage in declarative workflows#3021
crickman wants to merge 10 commits intocrickman/dependency-update-declarative-objectmodelfrom
crickman/messaging-handling-fix-declarative-workflows

Conversation

@crickman
Copy link
Contributor

@crickman crickman commented Dec 23, 2025

Motivation and Context

Ensures media-type and message id are persisted when converting between ChatMessage and the object model representation.

Fixes: #3020

Note: Relies on dependency update in PR #3017 (rebase this PR to main after merged)

Description

  • Makes use of update to Object Model update that supports MediaType
  • Tests added

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

@crickman crickman self-assigned this Dec 23, 2025
@crickman crickman added .NET workflows Related to Workflows in agent-framework labels Dec 23, 2025
@crickman crickman added the v1.0 Features being tracked for the version 1.0 GA label Dec 23, 2025
@crickman crickman moved this to In Review in Agent Framework Dec 23, 2025
private static string InferMediaType(string value)
{
// Base64 encoded content includes media type
if (value.StartsWith("data:", StringComparison.OrdinalIgnoreCase))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: ImageUrl is constrained to image types for public url, but allows for PDF for base64 encoded data: urls.

dmytrostruk and others added 9 commits January 28, 2026 19:58
* Renamed Github to GitHub

* Small fix

* Updated package versions
)

* Builds locally and tests pass

* Fix typo

* Reverted nuget config change to remove internal feed and map to new public object model package with renames.

* Renaming Bot object model in additional sample.

---------

Co-authored-by: Peter Ibekwe <peibekwe@microsoft.com>
…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
@peibekwe peibekwe requested a review from a team as a code owner January 29, 2026 18:05
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python lab Agent Framework Lab labels Jan 29, 2026
@github-actions github-actions bot changed the title .NET Workflows - Support fidelity when converting to and from ChatMessage in declarative workflows Python: .NET Workflows - Support fidelity when converting to and from ChatMessage in declarative workflows Jan 29, 2026
@peibekwe peibekwe removed the request for review from a team January 29, 2026 18:12
@peibekwe peibekwe closed this Jan 30, 2026
@github-project-automation github-project-automation bot moved this from In Review to Done in Agent Framework Jan 30, 2026
@peibekwe peibekwe reopened this Jan 30, 2026
@peibekwe
Copy link
Contributor

Closing this PR as it's been checked in as part of #3505

@peibekwe peibekwe closed this Jan 30, 2026
@crickman crickman deleted the crickman/messaging-handling-fix-declarative-workflows branch February 4, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lab Agent Framework Lab .NET python v1.0 Features being tracked for the version 1.0 GA workflows Related to Workflows in agent-framework

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants