diff --git a/python/samples/semantic-kernel-migration/copilot_studio/01_basic_copilot_studio_agent.py b/python/samples/semantic-kernel-migration/copilot_studio/01_basic_copilot_studio_agent.py index 240a03440dd..84d3c88ba32 100644 --- a/python/samples/semantic-kernel-migration/copilot_studio/01_basic_copilot_studio_agent.py +++ b/python/samples/semantic-kernel-migration/copilot_studio/01_basic_copilot_studio_agent.py @@ -45,10 +45,9 @@ async def run_agent_framework() -> None: from agent_framework.microsoft import CopilotStudioAgent # AF exposes an equivalent CopilotStudioAgent wrapper. - agent = CopilotStudioAgent( - name="PhysicsAgent", - instructions="Answer physics questions concisely.", - ) + # AF connects to an already-published Copilot Studio agent, so its instructions + # are configured in Copilot Studio rather than passed to the wrapper. + agent = CopilotStudioAgent(name="PhysicsAgent") reply = await agent.run("Why is the sky blue?") print("[AF]", reply.text) diff --git a/python/samples/semantic-kernel-migration/copilot_studio/02_copilot_studio_streaming.py b/python/samples/semantic-kernel-migration/copilot_studio/02_copilot_studio_streaming.py index 991b4b5bf1c..5ae6f2f4997 100644 --- a/python/samples/semantic-kernel-migration/copilot_studio/02_copilot_studio_streaming.py +++ b/python/samples/semantic-kernel-migration/copilot_studio/02_copilot_studio_streaming.py @@ -47,10 +47,9 @@ async def run_semantic_kernel() -> None: async def run_agent_framework() -> None: from agent_framework.microsoft import CopilotStudioAgent - agent = CopilotStudioAgent( - name="TourGuide", - instructions="Provide travel recommendations in short bursts.", - ) + # AF connects to an already-published Copilot Studio agent, so its instructions + # are configured in Copilot Studio rather than passed to the wrapper. + agent = CopilotStudioAgent(name="TourGuide") # AF streaming provides incremental AgentResponseUpdate objects. print("[AF][stream]", end=" ") async for update in agent.run("Plan a day in Copenhagen for foodies.", stream=True):