mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
91c66f8a2c
* add sample demonstrating the use of agents in workflows * Update dotnet/samples/Catalog/AgentsInWorkflows/README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * use type instead of var --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
91c66f8a2c
ยท
2025-11-03 17:53:38 +00:00
History
What this sample demonstrates
This sample demonstrates the use of AI agents as executors within a workflow.
This workflow uses three translation agents:
- French Agent - translates input text to French
- Spanish Agent - translates French text to Spanish
- English Agent - translates Spanish text back to English
The agents are connected sequentially, creating a translation chain that demonstrates how AI-powered components can be seamlessly integrated into workflow pipelines.
Prerequisites
Before you begin, ensure you have the following prerequisites:
- .NET 8.0 SDK or later
- Azure OpenAI service endpoint and deployment configured
- Azure CLI installed and authenticated (for Azure credential authentication)
Note: This demo uses Azure CLI credentials for authentication. Make sure you're logged in with az login and have access to the Azure OpenAI resource. For more information, see the Azure CLI documentation.
Set the following environment variables:
$env:AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com/" # Replace with your Azure OpenAI resource endpoint
$env:AZURE_OPENAI_DEPLOYMENT_NAME="gpt-4o-mini" # Optional, defaults to gpt-4o-mini