enkryptai-sdk 1.0.3__tar.gz → 1.0.4__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 (41) hide show
  1. {enkryptai_sdk-1.0.3/src/enkryptai_sdk.egg-info → enkryptai_sdk-1.0.4}/PKG-INFO +1 -1
  2. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/setup.py +1 -1
  3. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/evals.py +3 -3
  4. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/models.py +1 -1
  5. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/red_team.py +2 -2
  6. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4/src/enkryptai_sdk.egg-info}/PKG-INFO +1 -1
  7. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/LICENSE +0 -0
  8. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/README.md +0 -0
  9. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/setup.cfg +0 -0
  10. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/__init__.py +0 -0
  11. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/ai_proxy.py +0 -0
  12. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/base.py +0 -0
  13. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/config.py +0 -0
  14. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/datasets.py +0 -0
  15. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/deployments.py +0 -0
  16. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/dto/__init__.py +0 -0
  17. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/dto/ai_proxy.py +0 -0
  18. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/dto/base.py +0 -0
  19. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/dto/datasets.py +0 -0
  20. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/dto/deployments.py +0 -0
  21. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/dto/guardrails.py +0 -0
  22. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/dto/models.py +0 -0
  23. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/dto/red_team.py +0 -0
  24. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/guardrails.py +0 -0
  25. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/guardrails_old.py +0 -0
  26. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk/response.py +0 -0
  27. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk.egg-info/SOURCES.txt +0 -0
  28. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk.egg-info/dependency_links.txt +0 -0
  29. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/src/enkryptai_sdk.egg-info/top_level.txt +0 -0
  30. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_ai_proxy.py +0 -0
  31. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_all.py +0 -0
  32. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_basic.py +0 -0
  33. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_datasets.py +0 -0
  34. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_deployments.py +0 -0
  35. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_detect_policy.py +0 -0
  36. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_guardrails.py +0 -0
  37. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_injection_attack.py +0 -0
  38. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_model.py +0 -0
  39. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_openai.py +0 -0
  40. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_policy_violation.py +0 -0
  41. {enkryptai_sdk-1.0.3 → enkryptai_sdk-1.0.4}/tests/test_redteam.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: enkryptai-sdk
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: A Python SDK with guardrails and red teaming functionality for API interactions
5
5
  Home-page: https://github.com/enkryptai/enkryptai-sdk
6
6
  Author: Enkrypt AI Team
@@ -8,7 +8,7 @@ with open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
8
8
 
9
9
  setup(
10
10
  name="enkryptai-sdk", # This is the name of your package on PyPI
11
- version="1.0.3", # Update this for new versions
11
+ version="1.0.4", # Update this for new versions
12
12
  description="A Python SDK with guardrails and red teaming functionality for API interactions",
13
13
  long_description=long_description,
14
14
  long_description_content_type="text/markdown",
@@ -34,7 +34,7 @@ class EvalsClient:
34
34
  return response.json()
35
35
 
36
36
  except Exception as e:
37
- print(e)
37
+ # print(e)
38
38
  return {"error": str(e)}
39
39
 
40
40
  # ----------------------------
@@ -59,7 +59,7 @@ class EvalsClient:
59
59
  try:
60
60
  return self._request("POST", "/guardrails/adherence", json=payload)
61
61
  except Exception as e:
62
- print(e)
62
+ # print(e)
63
63
  return {"error": str(e)}
64
64
 
65
65
  def check_relevancy(self, question, llm_answer):
@@ -80,5 +80,5 @@ class EvalsClient:
80
80
  try:
81
81
  return self._request("POST", "/guardrails/relevancy", json=payload)
82
82
  except Exception as e:
83
- print(e)
83
+ # print(e)
84
84
  return {"error": str(e)}
@@ -103,7 +103,7 @@ class ModelClient(BaseClient):
103
103
  """
104
104
  headers = {"X-Enkrypt-Model": model_saved_name}
105
105
  response = self._request("GET", "/models/get-model", headers=headers)
106
- print(response)
106
+ # print(response)
107
107
  if response.get("error"):
108
108
  raise ModelClientError(response["error"])
109
109
  return ModelConfig.from_dict(response)
@@ -275,7 +275,7 @@ class RedTeamClient(BaseClient):
275
275
  response = self._request("GET", "/redteam/results/summary", headers=headers)
276
276
  if response.get("error"):
277
277
  raise RedTeamClientError(response["error"])
278
- print(f"Response: {response}")
278
+ # print(f"Response: {response}")
279
279
  return RedTeamResultSummary.from_dict(response)
280
280
 
281
281
  def get_result_summary_test_type(self, task_id: str = None, test_name: str = None, test_type: str = None):
@@ -309,7 +309,7 @@ class RedTeamClient(BaseClient):
309
309
  response = self._request("GET", url, headers=headers)
310
310
  if response.get("error"):
311
311
  raise RedTeamClientError(response["error"])
312
- print(f"Response: {response}")
312
+ # print(f"Response: {response}")
313
313
  return RedTeamResultSummary.from_dict(response)
314
314
 
315
315
  def get_result_details(self, task_id: str = None, test_name: str = None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: enkryptai-sdk
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: A Python SDK with guardrails and red teaming functionality for API interactions
5
5
  Home-page: https://github.com/enkryptai/enkryptai-sdk
6
6
  Author: Enkrypt AI Team
File without changes
File without changes
File without changes