Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading