mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
c79f886dc3
* dotnet: refresh Foundry sample guidance Carry forward the still-relevant sample guidance and Foundry-specific documentation fixes from the old stacked sample migration work, adapted to the current repo layout and policy. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * dotnet: rename Foundry sample env vars Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * dotnet: remove persistent provider sample Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * dotnet: drop SAMPLE_GUIDELINES.md from this PR Defer the guidelines doc and its cross-link to a follow-on PR to avoid broken-link failures in CI. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * dotnet: add DefaultAzureCredential warning to remaining samples Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * dotnet: address PR review feedback Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
c79f886dc3
ยท
2026-06-11 17:26:00 +00:00
History
Magentic Orchestration Sample
This sample showcases the Magentic Orchestration Pattern in .NET, setting up a team with three roles:
- ResearcherAgent gathers factual background information.
- CoderAgent uses
HostedCodeInterpreterToolfor quantitative analysis. - MagenticManager plans the work, tracks progress, and decides who should act next.
What This Sample Demonstrates
- Building a Magentic workflow with
MagenticWorkflowBuilder - Combining standard responses-based agents with a code interpreter-enabled participant
- Streaming orchestration events such as the initial plan, replans, and progress-ledger updates
- Printing the final multi-agent conversation transcript
Prerequisites
FOUNDRY_PROJECT_ENDPOINTset to your Azure AI Foundry project endpointFOUNDRY_MODELset to your model deployment name (defaults togpt-5.4-mini)az logincompleted before running the sample
Running the Sample
dotnet run
Expected Output
The sample prints:
- The original task prompt
- Streamed updates from the participating agents
- Magentic plan and progress-ledger events as the workflow coordinates the team
- The final conversation transcript returned by the workflow
Related Samples
- Handoff Orchestration - another multi-agent orchestration pattern in .NET workflows
- Python Magentic workflow sample - the source scenario that this sample ports