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.
- 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
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
dotnet runThe 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
- Handoff Orchestration - another multi-agent orchestration pattern in .NET workflows
- Python Magentic workflow sample - the source scenario that this sample ports