Skip to content

.NET - [Breaking]: Update Declarative Object Model + Dependencies - #3017

Merged
Peter Ibekwe (peibekwe) merged 6 commits into
mainfrom
crickman/dependency-update-declarative-objectmodel
Jan 28, 2026
Merged

.NET - [Breaking]: Update Declarative Object Model + Dependencies#3017
Peter Ibekwe (peibekwe) merged 6 commits into
mainfrom
crickman/dependency-update-declarative-objectmodel

Conversation

@crickman

@crickmanChris (crickman) commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

Motivation and Context

Microsoft.Bot.ObjectModel.* packages and namespaces have been updated to Microsoft.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 to Microsoft.Agents.ObjectModel.* packages and also picks up an update that includes media type for image or file based message content.

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.

@crickmanChris (crickman) self-assigned this Dec 22, 2025
CopilotAI review requested due to automatic review settings December 22, 2025 21:45
@crickmanChris (crickman) added dependencies agents Usage: [Issues, PRs], Target: Single agent workflows Usage: [Issues, PRs], Target: Workflows labels Dec 22, 2025
@crickmanChris (crickman) moved this to In Progress in Agent FrameworkDec 22, 2025
@markwallace-microsoftMark Wallace (markwallace-microsoft) added the .NET Usage: [Issues, PRs], Target: .Net label Dec 22, 2025
@crickmanChris (crickman) moved this from In Progress to In Review in Agent FrameworkDec 22, 2025

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.ObjectModel to Microsoft.Agents.ObjectModel across all files
  • Restructured TypeSchema to separate message content fields into a dedicated MessageContent class
  • Updated field names: ContentType/ContentValueType/Value with new MediaType field 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
FileDescription
dotnet/Directory.Packages.propsUpdated package references to Microsoft.Agents.ObjectModel.* version 1.2025.1222.3
dotnet/nuget.configAdded CopilotStudio package source for Microsoft.Agents.ObjectModel packages
dotnet/src/**/*.csprojUpdated PackageReference from Microsoft.Bot.ObjectModel to Microsoft.Agents.ObjectModel
dotnet/src/**/*.csUpdated using statements from Microsoft.Bot.ObjectModel to Microsoft.Agents.ObjectModel
PowerFx/TypeSchema.csRefactored schema: extracted MessageContent class with Type/Value/MediaType fields
Extensions/ChatMessageExtensions.csUpdated to use new TypeSchema.MessageContent field names and added MediaType support
PowerFx/Functions/MessageFunction.csUpdated to use TypeSchema.MessageContent for content fields
dotnet/tests/**/*Tests.csUpdated test assertions to use new TypeSchema.MessageContent field names

@peibekwePeter Ibekwe (peibekwe) changed the title .NET - Update Declarative Object Model + Dependencies.NET - [Breaking]: Update Declarative Object Model + DependenciesJan 28, 2026
@moonbox3Evan Mattson (moonbox3) added declarative Usage: [Issues, PRs], Target: declarative agents and workflows and removed declarative-workflow labels Jun 17, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentsUsage: [Issues, PRs], Target: Single agentdeclarativeUsage: [Issues, PRs], Target: declarative agents and workflows.NETUsage: [Issues, PRs], Target: .NetworkflowsUsage: [Issues, PRs], Target: Workflows

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

.NET Declarative Object Model requires dependency update.

6 participants

@crickman@alliscode@peibekwe@moonbox3@markwallace-microsoft