aiverify-moonshot 0.4.0__tar.gz → 0.4.1__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 (171) hide show
  1. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/PKG-INFO +2 -2
  2. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/README.md +1 -1
  3. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/__main__.py +3 -2
  4. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/redteam/session.py +13 -1
  5. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/app.py +1 -1
  6. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/attack/attack_module.py +1 -1
  7. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/attack/attack_module_arguments.py +1 -1
  8. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/pyproject.toml +2 -2
  9. aiverify_moonshot-0.4.0/.github/workflows/test_api.yaml +0 -44
  10. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/.coveragerc +0 -0
  11. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/.flake8 +0 -0
  12. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/.gitignore +0 -0
  13. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/.pre-commit-config.yaml +0 -0
  14. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/AUTHORS.md +0 -0
  15. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/LICENSE.md +0 -0
  16. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/NOTICES.md +0 -0
  17. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/__init__.py +0 -0
  18. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/api.py +0 -0
  19. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/__init__.py +0 -0
  20. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/__init__.py +0 -0
  21. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/__main__.py +0 -0
  22. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/active_session_cfg.py +0 -0
  23. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/benchmark/__init__.py +0 -0
  24. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/benchmark/benchmark.py +0 -0
  25. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/benchmark/cookbook.py +0 -0
  26. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/benchmark/datasets.py +0 -0
  27. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/benchmark/metrics.py +0 -0
  28. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/benchmark/recipe.py +0 -0
  29. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/benchmark/result.py +0 -0
  30. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/benchmark/run.py +0 -0
  31. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/benchmark/runner.py +0 -0
  32. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/cli.py +0 -0
  33. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/common/__init__.py +0 -0
  34. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/common/common.py +0 -0
  35. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/common/connectors.py +0 -0
  36. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/common/display_helper.py +0 -0
  37. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/common/prompt_template.py +0 -0
  38. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/initialisation/__init__.py +0 -0
  39. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/initialisation/initialisation.py +0 -0
  40. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/redteam/__init__.py +0 -0
  41. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/redteam/attack_module.py +0 -0
  42. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/redteam/context_strategy.py +0 -0
  43. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/redteam/prompt_template.py +0 -0
  44. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/cli/redteam/redteam.py +0 -0
  45. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/.env.dev +0 -0
  46. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/__init__.py +0 -0
  47. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/__main__.py +0 -0
  48. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/container.py +0 -0
  49. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/log/.gitkeep +0 -0
  50. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/logging_conf.py +0 -0
  51. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/__init__.py +0 -0
  52. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/attack_modules.py +0 -0
  53. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/benchmark.py +0 -0
  54. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/benchmark_result.py +0 -0
  55. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/context_strategy.py +0 -0
  56. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/cookbook.py +0 -0
  57. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/dataset.py +0 -0
  58. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/endpoint.py +0 -0
  59. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/metric.py +0 -0
  60. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/prompt_template.py +0 -0
  61. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/recipe.py +0 -0
  62. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/redteam.py +0 -0
  63. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/routes/runner.py +0 -0
  64. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/__init__.py +0 -0
  65. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/benchmark_runner_dto.py +0 -0
  66. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/cookbook_create_dto.py +0 -0
  67. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/cookbook_response_model.py +0 -0
  68. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/dataset_response_dto.py +0 -0
  69. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/endpoint_create_dto.py +0 -0
  70. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/endpoint_response_model.py +0 -0
  71. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/prompt_response_model.py +0 -0
  72. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/prompt_template_response_model.py +0 -0
  73. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/recipe_create_dto.py +0 -0
  74. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/recipe_response_model.py +0 -0
  75. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/session_create_dto.py +0 -0
  76. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/session_prompt_dto.py +0 -0
  77. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/schemas/session_response_model.py +0 -0
  78. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/__init__.py +0 -0
  79. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/attack_module_service.py +0 -0
  80. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/auto_red_team_test_manager.py +0 -0
  81. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/auto_red_team_test_state.py +0 -0
  82. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/base_service.py +0 -0
  83. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/benchmark_result_service.py +0 -0
  84. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/benchmark_test_manager.py +0 -0
  85. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/benchmark_test_state.py +0 -0
  86. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/benchmarking_service.py +0 -0
  87. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/context_strategy_service.py +0 -0
  88. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/cookbook_service.py +0 -0
  89. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/dataset_service.py +0 -0
  90. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/endpoint_service.py +0 -0
  91. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/metric_service.py +0 -0
  92. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/prompt_template_service.py +0 -0
  93. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/recipe_service.py +0 -0
  94. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/runner_service.py +0 -0
  95. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/session_service.py +0 -0
  96. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/utils/exceptions_handler.py +0 -0
  97. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/services/utils/results_formatter.py +0 -0
  98. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/status_updater/interface/benchmark_progress_callback.py +0 -0
  99. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/status_updater/interface/redteam_progress_callback.py +0 -0
  100. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/status_updater/moonshot_ui_webhook.py +0 -0
  101. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/integrations/web_api/types/types.py +0 -0
  102. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/__init__.py +0 -0
  103. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/__init__.py +0 -0
  104. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_connector.py +0 -0
  105. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_connector_endpoint.py +0 -0
  106. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_context_strategy.py +0 -0
  107. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_cookbook.py +0 -0
  108. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_dataset.py +0 -0
  109. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_environment_variables.py +0 -0
  110. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_metrics.py +0 -0
  111. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_prompt_template.py +0 -0
  112. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_recipe.py +0 -0
  113. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_red_teaming.py +0 -0
  114. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_result.py +0 -0
  115. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_run.py +0 -0
  116. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_runner.py +0 -0
  117. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/api/api_session.py +0 -0
  118. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/configs/__init__.py +0 -0
  119. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/configs/env_variables.py +0 -0
  120. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/connectors/__init__.py +0 -0
  121. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/connectors/connector.py +0 -0
  122. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/connectors/connector_prompt_arguments.py +0 -0
  123. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/connectors_endpoints/__init__.py +0 -0
  124. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/connectors_endpoints/connector_endpoint.py +0 -0
  125. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/connectors_endpoints/connector_endpoint_arguments.py +0 -0
  126. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/cookbooks/__init__.py +0 -0
  127. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/cookbooks/cookbook.py +0 -0
  128. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/cookbooks/cookbook_arguments.py +0 -0
  129. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/datasets/__init__.py +0 -0
  130. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/datasets/dataset.py +0 -0
  131. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/datasets/dataset_arguments.py +0 -0
  132. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/metrics/__init__.py +0 -0
  133. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/metrics/metric.py +0 -0
  134. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/metrics/metric_interface.py +0 -0
  135. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/prompt_templates/__init__.py +0 -0
  136. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/prompt_templates/prompt_template.py +0 -0
  137. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/recipes/__init__.py +0 -0
  138. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/recipes/recipe.py +0 -0
  139. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/recipes/recipe_arguments.py +0 -0
  140. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/__init__.py +0 -0
  141. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/attack/__init__.py +0 -0
  142. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/attack/context_strategy.py +0 -0
  143. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/context_strategy/__init__.py +0 -0
  144. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/context_strategy/context_strategy_interface.py +0 -0
  145. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/session/__init__.py +0 -0
  146. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/session/chat.py +0 -0
  147. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/session/red_teaming_progress.py +0 -0
  148. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/session/red_teaming_type.py +0 -0
  149. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/redteaming/session/session.py +0 -0
  150. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/results/__init__.py +0 -0
  151. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/results/result.py +0 -0
  152. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/results/result_arguments.py +0 -0
  153. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/runners/__init__.py +0 -0
  154. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/runners/runner.py +0 -0
  155. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/runners/runner_arguments.py +0 -0
  156. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/runners/runner_type.py +0 -0
  157. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/runs/__init__.py +0 -0
  158. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/runs/run.py +0 -0
  159. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/runs/run_arguments.py +0 -0
  160. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/runs/run_progress.py +0 -0
  161. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/runs/run_status.py +0 -0
  162. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/storage/__init__.py +0 -0
  163. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/storage/db_interface.py +0 -0
  164. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/storage/io_interface.py +0 -0
  165. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/storage/storage.py +0 -0
  166. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/utils/__init__.py +0 -0
  167. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/utils/import_modules.py +0 -0
  168. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/moonshot/src/utils/timeit.py +0 -0
  169. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/requirements.txt +0 -0
  170. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/third-party/pygments-2.18.0-py3-none-any.whl +0 -0
  171. {aiverify_moonshot-0.4.0 → aiverify_moonshot-0.4.1}/third-party/text_unidecode-1.3-py2.py3-none-any.whl +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: aiverify-moonshot
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: AI Verify advances Gen AI testing with Project Moonshot.
5
5
  Project-URL: Repository, https://github.com/aiverify-foundation/moonshot
6
6
  Project-URL: Documentation, https://aiverify-foundation.github.io/moonshot/
@@ -43,7 +43,7 @@ Description-Content-Type: text/markdown
43
43
 
44
44
  ![Moonshot Logo](https://github.com/aiverify-foundation/moonshot/raw/main/misc/aiverify-moonshot-logo.png)
45
45
 
46
- **Version 0.4.0**
46
+ **Version 0.4.1**
47
47
 
48
48
  A simple and modular tool to evaluate any LLM application.
49
49
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![Moonshot Logo](https://github.com/aiverify-foundation/moonshot/raw/main/misc/aiverify-moonshot-logo.png)
4
4
 
5
- **Version 0.4.0**
5
+ **Version 0.4.1**
6
6
 
7
7
  A simple and modular tool to evaluate any LLM application.
8
8
 
@@ -83,6 +83,9 @@ def moonshot_data_installation():
83
83
  # Clone the repository
84
84
  run_subprocess(["git", "clone", repo], check=True)
85
85
 
86
+ # Create .env to point to installed folder
87
+ ms_lib_env_file(folder_name)
88
+
86
89
  # Change directory to the folder
87
90
  os.chdir(folder_name)
88
91
 
@@ -99,8 +102,6 @@ def moonshot_data_installation():
99
102
  # Change back to the base directory
100
103
  os.chdir("..")
101
104
 
102
- # Create .env to point to installed folder
103
- ms_lib_env_file(folder_name)
104
105
  else:
105
106
  print(f"Directory {folder_name} already exists, skipping clone.")
106
107
 
@@ -263,6 +263,9 @@ def run_attack_module(args):
263
263
  context_strategy = args.context_strategy or []
264
264
  prompt_template = [args.prompt_template] if args.prompt_template else []
265
265
  metric = [args.metric] if args.metric else []
266
+ optional_arguments = (
267
+ literal_eval(args.optional_args) if args.optional_args else {}
268
+ )
266
269
  num_of_prev_prompts = (
267
270
  args.num_of_prev_prompts
268
271
  if args.num_of_prev_prompts
@@ -288,6 +291,7 @@ def run_attack_module(args):
288
291
  "context_strategy_info": context_strategy_info,
289
292
  "prompt_template_ids": prompt_template,
290
293
  "metric_ids": metric,
294
+ "optional_params": optional_arguments,
291
295
  }
292
296
  ]
293
297
  runner_args = {}
@@ -407,7 +411,8 @@ automated_rt_session_args = cmd2.Cmd2ArgumentParser(
407
411
  description="Runs automated red teaming in the current session.",
408
412
  epilog=(
409
413
  'Example:\n run_attack_module sample_attack_module "this is my prompt" -s "test system prompt" '
410
- '-c "add_previous_prompt" -p "mmlu" -m "bleuscore"'
414
+ '-c "add_previous_prompt" -p "mmlu" -m "bleuscore" '
415
+ "-o \"{'max_number_of_iteration': 1, 'my_optional_param': 'hello world'}\""
411
416
  ),
412
417
  )
413
418
 
@@ -455,6 +460,13 @@ automated_rt_session_args.add_argument(
455
460
  "-m", "--metric", type=str, help="Name of the metric module to be used.", nargs="?"
456
461
  )
457
462
 
463
+ automated_rt_session_args.add_argument(
464
+ "-o",
465
+ "--optional_args",
466
+ type=str,
467
+ help="Optional parameters to input into the red teaming module.",
468
+ nargs="?",
469
+ )
458
470
 
459
471
  # Delete session arguments
460
472
  delete_session_args = cmd2.Cmd2ArgumentParser(
@@ -71,7 +71,7 @@ def create_app(cfg: providers.Configuration) -> CustomFastAPI:
71
71
 
72
72
  app: CustomFastAPI = CustomFastAPI(
73
73
  title="Project Moonshot",
74
- version="0.4.0",
74
+ version="0.4.1",
75
75
  **app_kwargs
76
76
  )
77
77
 
@@ -40,7 +40,7 @@ class AttackModule:
40
40
  self.db_instance = am_arguments.db_instance
41
41
  self.red_teaming_progress = am_arguments.red_teaming_progress
42
42
  self.cancel_event = am_arguments.cancel_event
43
- self.params = am_arguments.params
43
+ self.optional_params = am_arguments.optional_params
44
44
 
45
45
  @classmethod
46
46
  def load(
@@ -41,4 +41,4 @@ class AttackModuleArguments(BaseModel):
41
41
  cancel_event: asyncio.Event
42
42
 
43
43
  # a dict that contains other params that is required by the attack module (if any)
44
- params: dict = {}
44
+ optional_params: dict = {}
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "aiverify-moonshot"
7
- version = "0.4.0"
7
+ version = "0.4.1"
8
8
  authors = [
9
9
  { name="AI Verify Foundation", email="info@aiverify.sg" }
10
10
  ]
@@ -94,7 +94,7 @@ allow-direct-references = true
94
94
 
95
95
  [tool.poetry]
96
96
  name = "aiverify-moonshot"
97
- version = "0.4.0"
97
+ version = "0.4.1"
98
98
  description = "A simple and modular tool to evaluate and red-team any LLM application."
99
99
  authors = ["The Moonshot Team <our.moonshot.team@gmail.com>"]
100
100
  readme = "README.md"
@@ -1,44 +0,0 @@
1
- name: Run pytest on pull request
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - dev_main
7
-
8
- jobs:
9
- test:
10
- runs-on: ubuntu-latest
11
-
12
- steps:
13
- - name: Checkout code
14
- uses: actions/checkout@v2
15
- with:
16
- ref: dev_main
17
- fetch-depth: 0
18
-
19
- - name: Set up Python
20
- uses: actions/setup-python@v2
21
- with:
22
- python-version: '3.11'
23
-
24
- - name: Install dependencies
25
- run: pip install -r requirements.txt
26
-
27
- - name: Create a openai-gpt35 endpoint
28
- run: |
29
- echo '{
30
- "type": "openai-gpt35",
31
- "name": "my-openai-gpt35",
32
- "uri": "",
33
- "token": "${{ secrets.OPENAI_GPT35_TOKEN }}",
34
- "max_calls_per_second": 100,
35
- "max_concurrency": 100,
36
- "params": {
37
- "timeout": 600,
38
- "allow_retries": true,
39
- "num_of_retries": 3
40
- }
41
- }' > moonshot/data/connectors/my-openai-gpt35.json
42
-
43
- - name: Run Pytest
44
- run: pytest tests/test_api_pytest.py