.NET - [Breaking]: Update Declarative Object Model + Dependencies#3017
Merged
.NET - [Breaking]: Update Declarative Object Model + Dependencies#3017
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates dependencies from the deprecated Microsoft.Bot.ObjectModel.* packages to the new Microsoft.Agents.ObjectModel.* packages (version 1.2025.1222.3), and refactors the message content type schema to support media type information for image and file-based content.
Key Changes:
- Renamed namespace from
Microsoft.Bot.ObjectModeltoMicrosoft.Agents.ObjectModelacross all files - Restructured TypeSchema to separate message content fields into a dedicated
MessageContentclass - Updated field names:
ContentType/ContentValue→Type/Valuewith newMediaTypefield support - Added new NuGet package source for the Microsoft.Agents.ObjectModel packages
Reviewed changes
Copilot reviewed 160 out of 160 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
dotnet/Directory.Packages.props |
Updated package references to Microsoft.Agents.ObjectModel.* version 1.2025.1222.3 |
dotnet/nuget.config |
Added CopilotStudio package source for Microsoft.Agents.ObjectModel packages |
dotnet/src/**/*.csproj |
Updated PackageReference from Microsoft.Bot.ObjectModel to Microsoft.Agents.ObjectModel |
dotnet/src/**/*.cs |
Updated using statements from Microsoft.Bot.ObjectModel to Microsoft.Agents.ObjectModel |
PowerFx/TypeSchema.cs |
Refactored schema: extracted MessageContent class with Type/Value/MediaType fields |
Extensions/ChatMessageExtensions.cs |
Updated to use new TypeSchema.MessageContent field names and added MediaType support |
PowerFx/Functions/MessageFunction.cs |
Updated to use TypeSchema.MessageContent for content fields |
dotnet/tests/**/*Tests.cs |
Updated test assertions to use new TypeSchema.MessageContent field names |
dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/Extensions/FormulaValueExtensions.cs
Outdated
Show resolved
Hide resolved
4 tasks
…ublic object model package with renames.
peibekwe
approved these changes
Jan 28, 2026
alliscode
approved these changes
Jan 28, 2026
This was referenced Jan 28, 2026
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
Microsoft.Bot.ObjectModel.*packages and namespaces have been updated toMicrosoft.Agents.ObjectModel.*Note: Requires nuget.org to be update in order to build successfully in github.
Fixes: #3018
Description
This change updates the dependencies on the
Microsoft.Bot.ObjectModel.*packages to the toMicrosoft.Agents.ObjectModel.*packages and also picks up an update that includes media type for image or file based message content.Contribution Checklist