Skip to content

Python: Move red teaming files to its own folder#2333

Merged
YusakuNo1 merged 4 commits intomainfrom
users/daviwu/move_red_team_folder
Nov 20, 2025
Merged

Python: Move red teaming files to its own folder#2333
YusakuNo1 merged 4 commits intomainfrom
users/daviwu/move_red_team_folder

Conversation

@YusakuNo1
Copy link
Contributor

Motivation and Context

Description

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings November 19, 2025 19:05
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python labels Nov 19, 2025
@github-actions github-actions bot changed the title Move red teaming files to its own folder Python: Move red teaming files to its own folder Nov 19, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.py by 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 YusakuNo1 added this pull request to the merge queue Nov 20, 2025
Merged via the queue into main with commit c7a8c12 Nov 20, 2025
23 checks passed
@YusakuNo1 YusakuNo1 deleted the users/daviwu/move_red_team_folder branch November 20, 2025 08:36
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants