dtx-models 0.18.2__tar.gz → 0.19.0__tar.gz

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.
Files changed (29) hide show
  1. {dtx_models-0.18.2 → dtx_models-0.19.0}/PKG-INFO +1 -1
  2. {dtx_models-0.18.2 → dtx_models-0.19.0}/pyproject.toml +1 -1
  3. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/analysis.py +2 -2
  4. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/prompts.py +2 -2
  5. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/scope.py +2 -2
  6. {dtx_models-0.18.2 → dtx_models-0.19.0}/README.md +0 -0
  7. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/__init__.py +0 -0
  8. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/base.py +0 -0
  9. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/evaluator.py +0 -0
  10. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/exceptions.py +0 -0
  11. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/providers/__init__.py +0 -0
  12. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/providers/base.py +0 -0
  13. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/providers/gradio.py +0 -0
  14. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/providers/groq.py +0 -0
  15. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/providers/hf.py +0 -0
  16. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/providers/http.py +0 -0
  17. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/providers/litellm.py +0 -0
  18. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/providers/models_spec.py +0 -0
  19. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/providers/ollama.py +0 -0
  20. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/providers/openai.py +0 -0
  21. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/results.py +0 -0
  22. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/tactic.py +0 -0
  23. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/target.py +0 -0
  24. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/template/__init__.py +0 -0
  25. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/template/prompts/__init__.py +0 -0
  26. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/template/prompts/base.py +0 -0
  27. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/template/prompts/langhub.py +0 -0
  28. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/utils/__init__.py +0 -0
  29. {dtx_models-0.18.2 → dtx_models-0.19.0}/src/dtx_models/utils/urls.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dtx-models
3
- Version: 0.18.2
3
+ Version: 0.19.0
4
4
  Summary: Shared model schemas and YAML-based configurations for the DTX framework.
5
5
  Author: JC
6
6
  Author-email: jitendra@detoxio.ai
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "dtx-models"
3
- version = "0.18.2"
3
+ version = "0.19.0"
4
4
  description = "Shared model schemas and YAML-based configurations for the DTX framework."
5
5
  authors = ["JC <jitendra@detoxio.ai>"]
6
6
  readme = "README.md"
@@ -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 Agent, RedTeamScope
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: Agent = Field(
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")
@@ -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 Agent. Generally it is the harmful.",
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 Agent Response",
331
+ description="Final AgentInfo Response",
332
332
  )
333
333
 
334
334
  scores: Optional[Dict[str, float]] = Field(
@@ -16,7 +16,7 @@ from .template.prompts.base import PromptsRepoType
16
16
  from .template.prompts.langhub import LangHubPromptTemplate
17
17
 
18
18
 
19
- class Agent(BaseModel):
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: Agent
207
+ agent: AgentInfo
208
208
  redteam: RedTeamSettings
File without changes