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

* Move red teaming files to its own folder

* Update file path

* Updated folder names

* Updated reference names
This commit is contained in:
David Wu
2025-11-20 00:28:22 -08:00
committed by GitHub
Unverified
parent d714b91a14
commit c7a8c12296
8 changed files with 17 additions and 15 deletions
+2 -2
View File
@@ -184,8 +184,8 @@ This directory contains samples demonstrating the capabilities of Microsoft Agen
| File | Description |
|------|-------------|
| [`getting_started/evaluation/azure_ai_foundry/red_team_agent_sample.py`](./getting_started/evaluation/azure_ai_foundry/red_team_agent_sample.py) | Red team agent evaluation sample for Azure AI Foundry |
| [`getting_started/evaluation/azure_ai_foundry/evaluation/self_reflection.py`](./getting_started/evaluation/azure_ai_foundry/evaluation/self_reflection.py) | LLM self-reflection with AI Foundry graders example |
| [`getting_started/evaluation/azure_ai_foundry/red_teaming/red_team_agent_sample.py`](./getting_started/evaluation/azure_ai_foundry/red_teaming/red_team_agent_sample.py) | Red team agent evaluation sample for Azure AI Foundry |
| [`getting_started/evaluation/azure_ai_foundry/self_reflection/self_reflection.py`](./getting_started/evaluation/azure_ai_foundry/self_reflection/self_reflection.py) | LLM self-reflection with AI Foundry graders example |
## MCP (Model Context Protocol)
@@ -1,3 +1,18 @@
# Copyright (c) Microsoft. All rights reserved.
# type: ignore
import asyncio
import os
import time
import argparse
import pandas as pd
from typing import Any
from dotenv import load_dotenv
from agent_framework import ChatAgent, ChatMessage
from agent_framework.azure import AzureOpenAIChatClient
from azure.identity import AzureCliCredential
from azure.ai.evaluation import GroundednessEvaluator, AzureOpenAIModelConfiguration
"""
Self-Reflection LLM Runner
@@ -21,19 +36,6 @@ Usage as CLI with extra options:
-n 10 # Optional: process only first 10 prompts
"""
import asyncio
import os
import time
import argparse
import pandas as pd
from typing import Dict, Any, Optional
from dotenv import load_dotenv
from agent_framework import ChatAgent, ChatMessage
from agent_framework.azure import AzureOpenAIChatClient
from azure.identity import AzureCliCredential
from azure.ai.evaluation import GroundednessEvaluator, AzureOpenAIModelConfiguration
DEFAULT_AGENT_MODEL = "gpt-4.1"
DEFAULT_JUDGE_MODEL = "gpt-4.1"