Skip to content

.NET Workflow - Integrated updated CPS Object Model - #681

Merged
Chris (crickman) merged 28 commits into
mainfrom
feature_declarative_workflow_objectmodel
Sep 15, 2025
Merged

Chris (crickman) merged 28 commits into
mainfrom
feature_declarative_workflow_objectmodel

Conversation

@crickman

@crickman Chris (crickman) commented Sep 10, 2025 •

Copy link
Copy Markdown
Contributor

Motivation and Context

Integrate Foundry specific actions from updated package: Microsoft.Bot.ObjectModel

Source: https://msazure.visualstudio.com/CCI/_git/ObjectModel/pullrequest/13137388

Description

🤖 Actions being introduced:

  • CreateConversation
  • AddConversationMessage
  • CopyConversationMessages
  • InvokeAzureAgent
  • RetrieveConversationMessage
  • RetrieveConversationMessages

Also picking up:

  • Question
  • SetMultipleVariables

👉 SAMPLES UPDATED 👈

🧪 Introduced integration tests - lightweight. Next step: More validation logic / more testcases.

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 Chris (crickman) self-assigned this Sep 10, 2025
Copilot AI review requested due to automatic review settings September 10, 2025 03:21
@crickman Chris (crickman) added .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows labels Sep 10, 2025

Copilot AI 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 integrates an updated CPS Object Model by migrating from the deprecated AnswerQuestionWithAI action to the new InvokeAzureAgent action throughout the workflow system.

  • Replaces all AnswerQuestionWithAI usage with InvokeAzureAgent in workflow YAML files
  • Adds new conversation management capabilities and PowerFx functions for agent invocation
  • Updates package dependencies to newer preview versions

Reviewed Changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
workflows/Question.yaml Migrates from AnswerQuestionWithAI to InvokeAzureAgent for single agent interaction
workflows/MathChat.yaml Updates multi-agent workflow to use new agent invocation pattern
workflows/DeepResearch.yaml Converts complex orchestrator workflow to new object model with conversation management
dotnet/src/.../WorkflowAgentProvider.cs Adds conversation creation capability to agent provider
dotnet/src/.../SystemScope.cs Removes unused internal conversation ID methods
dotnet/src/.../RecalcEngineFactory.cs Registers new UserMessage PowerFx function
dotnet/src/.../UserMessage.cs Implements PowerFx function for creating user message objects
dotnet/src/.../InvokeAzureAgentExecutor.cs Implements executor for new InvokeAzureAgent action
dotnet/src/.../CreateConversationExecutor.cs Implements executor for conversation creation
dotnet/src/.../WorkflowActionVisitor.cs Updates visitor pattern to handle new actions and deprecate old ones
dotnet/src/.../DeclarativeActionExecutor.cs Makes target path nullable for optional assignment operations
dotnet/src/.../ChatMessageExtensions.cs Adds conversion methods between PowerFx data types and chat messages
dotnet/nuget.config Updates package source URL for CopilotStudio packages
dotnet/Directory.Packages.props Updates package versions to newer preview releases

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread workflows/DeepResearch.yaml Resolved

This branch was previously deployed

1 inactive deployment
integration — 1765fac3 Deployed Sep 15, 2025 by crickman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

declarative Usage: [Issues, PRs], Target: declarative agents and workflows .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants