Python: Move red teaming files to its own folder#2333
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR reorganizes the red teaming evaluation samples by moving them from the general evaluation directory into a dedicated red-teaming/ subdirectory under python/samples/getting_started/evaluation/azure_ai_foundry/. The changes improve code organization and add comprehensive documentation for red team evaluation capabilities.
Key Changes:
- Created a dedicated
red-teaming/folder with sample code, documentation, and configuration template - Added comprehensive README with setup instructions, best practices, and troubleshooting guidance
- Reorganized imports in
self_reflection.pyby moving them above the docstring (following standard Python conventions)
Reviewed Changes
Copilot reviewed 1 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
python/samples/getting_started/evaluation/azure_ai_foundry/red-teaming/red_team_agent_sample.py |
New sample demonstrating Azure AI RedTeam functionality with 11 attack strategies to evaluate agent safety |
python/samples/getting_started/evaluation/azure_ai_foundry/red-teaming/README.md |
Comprehensive documentation including prerequisites, usage instructions, result interpretation, and troubleshooting |
python/samples/getting_started/evaluation/azure_ai_foundry/red-teaming/.env.example |
Environment variable template for Azure OpenAI and Azure AI Project configuration |
python/samples/getting_started/evaluation/azure_ai_foundry/evaluation/self_reflection.py |
Reorganized imports to follow Python conventions (moved above module docstring) |
YusakuNo1
commented
Nov 19, 2025
python/samples/getting_started/evaluation/azure_ai_foundry/self_reflection/self_reflection.py
Show resolved
Hide resolved
TaoChenOSU
approved these changes
Nov 19, 2025
eavanvalkenburg
approved these changes
Nov 20, 2025
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
* Move red teaming files to its own folder * Update file path * Updated folder names * Updated reference names
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
Description
Contribution Checklist