Copilot Studio 통합을 사용하면 Agent Framework 내에서 Copilot Studio 에이전트를 사용할 수 있습니다.
다음 예제에서는 Copilot Studio를 사용하여 에이전트를 만드는 방법을 보여줍니다.
using System;
using Azure.Identity;
using Microsoft.Agents.AI;
using Microsoft.Agents.AI.CopilotStudio;
// Create a Copilot Studio agent using the IChatClient pattern
// Requires: dotnet add package Microsoft.Agents.AI.CopilotStudio --prerelease
var copilotClient = new CopilotStudioChatClient(
environmentId: "<your-environment-id>",
agentIdentifier: "<your-agent-id>",
credential: new AzureCliCredential());
AIAgent agent = copilotClient.AsAIAgent(
instructions: "You are a helpful enterprise assistant.");
Console.WriteLine(await agent.RunAsync("What are our company policies on remote work?"));
비고
Copilot Studio 에이전트에 대한 Python 지원은 곧 제공될 예정입니다.