dtx-models 0.18.2__py3-none-any.whl → 0.19.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dtx_models/analysis.py +2 -2
- dtx_models/prompts.py +2 -2
- dtx_models/scope.py +2 -2
- {dtx_models-0.18.2.dist-info → dtx_models-0.19.0.dist-info}/METADATA +1 -1
- {dtx_models-0.18.2.dist-info → dtx_models-0.19.0.dist-info}/RECORD +6 -6
- {dtx_models-0.18.2.dist-info → dtx_models-0.19.0.dist-info}/WHEEL +0 -0
dtx_models/analysis.py
CHANGED
@@ -6,7 +6,7 @@ from pydantic import BaseModel, ConfigDict, Field, field_serializer, field_valid
|
|
6
6
|
|
7
7
|
from .evaluator import BasePromptEvaluation
|
8
8
|
from .prompts import BaseTestStrPrompt, MultiturnTestPrompts
|
9
|
-
from .scope import
|
9
|
+
from .scope import AgentInfo, RedTeamScope
|
10
10
|
|
11
11
|
# ----------------------
|
12
12
|
# Define Models
|
@@ -92,7 +92,7 @@ class ThreatModel(BaseModel):
|
|
92
92
|
analysis: str = Field(
|
93
93
|
description="Thinking and analysis performed solve the problem as approach "
|
94
94
|
)
|
95
|
-
target:
|
95
|
+
target: AgentInfo = Field(
|
96
96
|
description="Target agent with necessary architectural details"
|
97
97
|
)
|
98
98
|
threat_actors: List[str] = Field(description="Potential Threat Actors")
|
dtx_models/prompts.py
CHANGED
@@ -286,7 +286,7 @@ class MultiTurnTestPrompt(BaseMultiTurnConversation):
|
|
286
286
|
)
|
287
287
|
base_prompt: str = Field(
|
288
288
|
default="",
|
289
|
-
description="Base prompt in its most simplistic form that need to be answered by AI
|
289
|
+
description="Base prompt in its most simplistic form that need to be answered by AI AgentInfo. Generally it is the harmful.",
|
290
290
|
)
|
291
291
|
|
292
292
|
model_config = ConfigDict(frozen=True) # Make fields immutable
|
@@ -328,7 +328,7 @@ class BaseMultiTurnAgentResponse(BaseMultiTurnResponse):
|
|
328
328
|
|
329
329
|
response: Optional[Union[str, List[Any], Dict[str, Any]]] = Field(
|
330
330
|
default_factory=dict,
|
331
|
-
description="Final
|
331
|
+
description="Final AgentInfo Response",
|
332
332
|
)
|
333
333
|
|
334
334
|
scores: Optional[Dict[str, float]] = Field(
|
dtx_models/scope.py
CHANGED
@@ -16,7 +16,7 @@ from .template.prompts.base import PromptsRepoType
|
|
16
16
|
from .template.prompts.langhub import LangHubPromptTemplate
|
17
17
|
|
18
18
|
|
19
|
-
class
|
19
|
+
class AgentInfo(BaseModel):
|
20
20
|
"""Represents an AI agent with various integrations, capabilities, and restrictions."""
|
21
21
|
|
22
22
|
name: Optional[str] = Field(default_factory=lambda: "") # Default value for name
|
@@ -204,5 +204,5 @@ class ProvidersWithEnvironments(BaseModel):
|
|
204
204
|
class RedTeamScope(ProvidersWithEnvironments):
|
205
205
|
"""Represents a red teaming scope, which includes an agent and its related details."""
|
206
206
|
|
207
|
-
agent:
|
207
|
+
agent: AgentInfo
|
208
208
|
redteam: RedTeamSettings
|
@@ -1,9 +1,9 @@
|
|
1
1
|
dtx_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
dtx_models/analysis.py,sha256=
|
2
|
+
dtx_models/analysis.py,sha256=2cOFSVFOJ2JMNaAxK5aaMMvbg6CLe7jhlnJCSMx0b7E,11547
|
3
3
|
dtx_models/base.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
dtx_models/evaluator.py,sha256=h1XDCrvbVoqkexNBfc4fiUkXNAlq8DhpMoybVmAgjYU,10026
|
5
5
|
dtx_models/exceptions.py,sha256=gxzdkoiZwsjfWKIT2m3hHM1FNO1l3gDj979rDUhKt_g,41
|
6
|
-
dtx_models/prompts.py,sha256=
|
6
|
+
dtx_models/prompts.py,sha256=l0JR1CI03wcVp-Ty6lvujS3eIIJVUJnF-Tj0bOt0yT8,15172
|
7
7
|
dtx_models/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
dtx_models/providers/base.py,sha256=KYEhVF61INjsGxO5tKOENv1c1xGGb1kX6Jevpewf5UI,418
|
9
9
|
dtx_models/providers/gradio.py,sha256=2edCLtTAILvJkiMQkYl4FYKixMPjHrRUB0OFK9SeuIU,5261
|
@@ -15,7 +15,7 @@ dtx_models/providers/models_spec.py,sha256=pc8yCITiaErZSp8H9f49fSBZEeEp2zPYfFN4Q
|
|
15
15
|
dtx_models/providers/ollama.py,sha256=VfCAOO9YTPMLUbcsiKXDQgG_SYSGVUsCfS7iwfhCogk,3207
|
16
16
|
dtx_models/providers/openai.py,sha256=psxmTeOdK5g2sOyLTBRTsxtgtBudXAWLCvzH8CeTNnw,3671
|
17
17
|
dtx_models/results.py,sha256=sah7v1jOXAd8Vz_ghlamgTSaYxjvI8GdBzpLq0O2OJU,4323
|
18
|
-
dtx_models/scope.py,sha256=
|
18
|
+
dtx_models/scope.py,sha256=rzB6cQhH5zjmL5F1m--_Jc7bxAYkY5AHB7x3tXcEcWw,7079
|
19
19
|
dtx_models/tactic.py,sha256=GFSqgRmf00P6qJKKuLo14h3Tg-TRkl9nKk7oLvzDMdI,1395
|
20
20
|
dtx_models/target.py,sha256=EETY2MzhWTuS4Xc8DmAQqrnesSuCttPaYTkzzt2Wn8M,5803
|
21
21
|
dtx_models/template/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -24,6 +24,6 @@ dtx_models/template/prompts/base.py,sha256=E1ygnImn7RBY1puRhnyz3Ftz77PgahipqG2Yt
|
|
24
24
|
dtx_models/template/prompts/langhub.py,sha256=90qvLl94hxg4mRRfhanoDICfS1YQyy3ply1ZYre7l6I,2414
|
25
25
|
dtx_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
26
|
dtx_models/utils/urls.py,sha256=1uuarlhCBi-BVTPvtvCz7l7kM-b7rVCmPI_9ktHrKYw,816
|
27
|
-
dtx_models-0.
|
28
|
-
dtx_models-0.
|
29
|
-
dtx_models-0.
|
27
|
+
dtx_models-0.19.0.dist-info/METADATA,sha256=Uo5BFyRhrHhlVj_aXIDv94j5a2_3hEy1qtT3LVuu1DI,1484
|
28
|
+
dtx_models-0.19.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
29
|
+
dtx_models-0.19.0.dist-info/RECORD,,
|
File without changes
|