You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Redteaming agent to go through FDP (#41146)
* Update Redteaming agent to go through FDP
* fix import
* update the sample
* fix the docstring
---------
Co-authored-by: Hanchi Wang <hanchiwang@mac.lan>
Co-authored-by: Nagkumar Arkalgud <nagkumar@naarkalg-work-mac.local>
Copy file name to clipboardExpand all lines: sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_agent/_agent_tools.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,9 @@ class RedTeamToolProvider:
30
30
31
31
This class provides tools that can be registered with Azure AI Agents
32
32
to enable red teaming capabilities.
33
-
34
-
:param azure_ai_project: The Azure AI project configuration for accessing red team services
35
-
:type azure_ai_project: Dict[str, Any]
33
+
34
+
:param azure_ai_project_endpoint: The Azure AI project endpoint (e.g., 'https://your-resource-name.services.ai.azure.com/api/projects/your-project-name')
35
+
:type azure_ai_project_endpoint: str
36
36
:param credential: The credential to authenticate with Azure services
37
37
:type credential: TokenCredential
38
38
:param application_scenario: Optional application scenario context for generating relevant prompts
Initialize the RedTeamPlugin with the necessary configuration components.
57
-
58
-
:param endpoint: The Azure AI endpoint (e.g., 'swedencentral.api.azureml.ms')
59
-
:param subscription_id: The Azure subscription ID
60
-
:param resource_group: The Azure resource group name
61
-
:param project_name: The Azure AI project name
47
+
48
+
:param azure_ai_project_endpoint: The Azure AI project endpoint (e.g., 'https://your-resource-name.services.ai.azure.com/api/projects/your-project-name')
62
49
:param target_func: Optional function to call with prompts
63
50
:param application_scenario: The application scenario for the tool provider
0 commit comments