Skip to content

Commit f9bd7d8

Browse files
authored
Merge branch 'main' into websocket_branch
2 parents 30f3167 + 414938c commit f9bd7d8

7 files changed

Lines changed: 1 addition & 259 deletions

File tree

doc/code/scoring/1_true_false_scorers.ipynb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,6 @@
277277
"encoding-based evasion. It favors recall over precision, so use it as a cheap pre-filter ahead of\n",
278278
"a model-based scorer such as `PromptShieldScorer`.\n",
279279
"\n",
280-
"### AgentThreatRulesScorer\n",
281-
"\n",
282-
"`AgentThreatRulesScorer` evaluates text against the locally bundled Agent Threat Rules (ATR)\n",
283-
"ruleset. It returns True when a rule at or above the configured minimum severity matches and\n",
284-
"records the matched rule IDs, ATR category, and maximum severity in score metadata. Install the\n",
285-
"optional integration with `pip install pyrit[atr]`.\n",
286-
"\n",
287280
"### DecodingScorer\n",
288281
"\n",
289282
"`DecodingScorer` checks whether the request text (its `original_value`, `converted_value`, or\n",

doc/code/scoring/1_true_false_scorers.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,6 @@
136136
# encoding-based evasion. It favors recall over precision, so use it as a cheap pre-filter ahead of
137137
# a model-based scorer such as `PromptShieldScorer`.
138138
#
139-
# ### AgentThreatRulesScorer
140-
#
141-
# `AgentThreatRulesScorer` evaluates text against the locally bundled Agent Threat Rules (ATR)
142-
# ruleset. It returns True when a rule at or above the configured minimum severity matches and
143-
# records the matched rule IDs, ATR category, and maximum severity in score metadata. Install the
144-
# optional integration with `pip install pyrit[atr]`.
145-
#
146139
# ### DecodingScorer
147140
#
148141
# `DecodingScorer` checks whether the request text (its `original_value`, `converted_value`, or

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ litellm = [
143143
"litellm>=1.83.0,<1.92.0",
144144
]
145145

146-
atr = [
147-
"pyatr>=0.2.6",
148-
]
149-
150146
# all includes all functional dependencies excluding the ones from the "dev" dependency group
151147
all = [
152148
"accelerate>=1.7.0",
@@ -160,7 +156,6 @@ all = [
160156
"opencv-python>=4.11.0.86",
161157
"playwright>=1.49.0",
162158
"pyarrow>=22.0.0; python_version >= '3.14'",
163-
"pyatr>=0.2.6",
164159
"spacy>=3.8.13,!=3.8.14,!=3.8.15", # 3.8.14-3.8.15 missing cp314 wheels
165160
"torch>=2.7.0",
166161
]

pyrit/score/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
)
5959
from pyrit.score.scorer_info import get_scorer_info
6060
from pyrit.score.scorer_prompt_validator import ScorerPromptValidator
61-
from pyrit.score.true_false.agent_threat_rules_scorer import AgentThreatRulesScorer
6261
from pyrit.score.true_false.decoding_scorer import DecodingScorer
6362
from pyrit.score.true_false.float_scale_threshold_scorer import FloatScaleThresholdScorer
6463
from pyrit.score.true_false.gandalf_scorer import GandalfScorer
@@ -172,7 +171,6 @@ def __getattr__(name: str) -> object:
172171

173172

174173
__all__ = [
175-
"AgentThreatRulesScorer",
176174
"AnthraxKeywordScorer",
177175
"AudioFloatScaleScorer",
178176
"AudioTrueFalseScorer",

pyrit/score/true_false/agent_threat_rules_scorer.py

Lines changed: 0 additions & 160 deletions
This file was deleted.

tests/unit/score/test_agent_threat_rules_scorer.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

uv.lock

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)