-
Notifications
You must be signed in to change notification settings - Fork 939
.NET - Update Declarative Object Model + Dependencies #3017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
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.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 |
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