Add Azure AI Agents as a secondary option for all agent roles#25
Add Azure AI Agents as a secondary option for all agent roles#25
Conversation
Co-authored-by: RicardoNiepel <7172277+RicardoNiepel@users.noreply.github.com>
|
@copilot I saw that you were unable to build the project because it requires .NET 9.0, which is not available in the current environment. Please install it in the environment and ensure it builds successfully. |
Co-authored-by: RicardoNiepel <7172277+RicardoNiepel@users.noreply.github.com>
I've installed .NET 9.0.300 in the environment and fixed several issues with the CreativeWriterSession.cs file to properly handle both Azure AI Agents and ChatCompletionAgent types. The project now builds successfully with the added Azure AI Search tool definition and proper agent integration. All changes have been committed in 3f86363. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This PR implements the ability to use Azure AI Agents for all agent roles in the creative writer application, rather than just for the Researcher role in the current implementation.
Changes Made
UseAzureAIAgentsconfiguration flag inappsettings.jsonthat can be set totrueto use Azure AI Agents for all roles orfalse(default) to keep the current implementationUseAzureAIAgentsistrue, all agents (Researcher, Marketing, Writer, Editor) are created as Azure AI AgentsUseAzureAIAgentsisfalse, only Researcher is an Azure AI Agent, others use ChatCompletionAgent (the default behavior)AzureAISearchToolDefinitionclass to enable Azure AI Search capabilities for Azure AI AgentsCreativeWriterSessionto work with different agent typesBenefits
How to Test
UseAzureAIAgentstotruein configuration and verify that all agents are created as Azure AI Agents and function correctlyFixes #2.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.