Python: sample with Foundry Redteams - #1306
Merged
Eduard van Valkenburg (eavanvalkenburg) merged 2 commits intoOct 8, 2025
Merged
Python: sample with Foundry Redteams#1306Eduard van Valkenburg (eavanvalkenburg) merged 2 commits into
Eduard van Valkenburg (eavanvalkenburg) merged 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a comprehensive sample demonstrating red team evaluation of Agent Framework agents using Azure AI Foundry's RedTeam functionality. The sample shows how to assess agent safety and resilience against adversarial attacks.
Key changes:
- Implements a complete red team evaluation workflow with an Azure OpenAI-based financial advisor agent
- Provides extensive documentation covering setup, configuration, and result interpretation
- Includes environment configuration template for required Azure resources
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| red_team_agent_sample.py | Core implementation showing red team evaluation with 11 different attack strategies and async agent callback |
| README.md | Comprehensive documentation covering prerequisites, setup, usage, and troubleshooting |
| .env.example | Environment variable template for Azure OpenAI and Azure AI project configuration |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Eduard van Valkenburg (eavanvalkenburg)
enabled auto-merge
October 8, 2025 14:46
Tao Chen (TaoChenOSU)
approved these changes
Oct 8, 2025
Dmytro Struk (dmytrostruk)
approved these changes
Oct 8, 2025
Reuben Bond (ReubenBond)
pushed a commit
to ReubenBond/agent-framework
that referenced
this pull request
Oct 28, 2025
* sample with evals * remove demo output
Aris Nguyen (arisng)
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
* sample with evals * remove demo output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
A sample demonstrating how you can use a agent framework agent with the redteam feature of Foundry.
Deliberately uses another type of agent to demonstrate universal approach.
Relates to #333
Description
Contribution Checklist