aiverify-moonshot 0.7.1__tar.gz → 0.7.2__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 (209) hide show
  1. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/PKG-INFO +2 -2
  2. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/README.md +1 -1
  3. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/app.py +1 -1
  4. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/benchmark_test_manager.py +15 -6
  5. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/cookbook_service.py +7 -0
  6. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_runner.py +8 -0
  7. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/pyproject.toml +2 -2
  8. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.coveragerc +0 -0
  9. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.flake8 +0 -0
  10. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/developing-workflows.md +0 -0
  11. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/pull_request_template.md +0 -0
  12. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/scripts/create_backup.sh +0 -0
  13. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/scripts/install_ms_service.sh +0 -0
  14. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/scripts/moonshot_env +0 -0
  15. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/scripts/moonshot_test_env +0 -0
  16. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/scripts/moonshot_ui_env +0 -0
  17. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/scripts/run_smoke_test.sh +0 -0
  18. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/scripts/start_ms_service.sh +0 -0
  19. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/docs-update.yaml +0 -0
  20. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/gh-event-notification.yaml +0 -0
  21. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/integration-test.yaml +0 -0
  22. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/notices-file-gen.yaml +0 -0
  23. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/pre-build-checks.yaml +0 -0
  24. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/pypi-deployment.yaml +0 -0
  25. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/sast-codeql.yaml +0 -0
  26. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/sca-scan.yaml +0 -0
  27. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/sit-build.yaml +0 -0
  28. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/smoke-test-cli.yaml +0 -0
  29. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/smoke-test.yaml +0 -0
  30. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/test-pypi-deployment.yaml +0 -0
  31. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.github/workflows/uat-build.yaml +0 -0
  32. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.gitignore +0 -0
  33. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/.pre-commit-config.yaml +0 -0
  34. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/AUTHORS.md +0 -0
  35. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/LICENSE.md +0 -0
  36. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/NOTICES.md +0 -0
  37. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/__init__.py +0 -0
  38. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/__main__.py +0 -0
  39. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/api.py +0 -0
  40. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/__init__.py +0 -0
  41. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/__init__.py +0 -0
  42. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/__main__.py +0 -0
  43. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/active_session_cfg.py +0 -0
  44. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/benchmark/__init__.py +0 -0
  45. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/benchmark/benchmark.py +0 -0
  46. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/benchmark/cookbook.py +0 -0
  47. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/benchmark/datasets.py +0 -0
  48. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/benchmark/metrics.py +0 -0
  49. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/benchmark/recipe.py +0 -0
  50. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/benchmark/result.py +0 -0
  51. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/benchmark/run.py +0 -0
  52. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/benchmark/runner.py +0 -0
  53. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/cli.py +0 -0
  54. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/cli_errors.py +0 -0
  55. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/common/__init__.py +0 -0
  56. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/common/common.py +0 -0
  57. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/common/connectors.py +0 -0
  58. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/common/dataset.py +0 -0
  59. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/common/display_helper.py +0 -0
  60. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/common/prompt_template.py +0 -0
  61. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/initialisation/__init__.py +0 -0
  62. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/initialisation/initialisation.py +0 -0
  63. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/redteam/__init__.py +0 -0
  64. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/redteam/attack_module.py +0 -0
  65. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/redteam/context_strategy.py +0 -0
  66. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/redteam/prompt_template.py +0 -0
  67. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/redteam/redteam.py +0 -0
  68. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/redteam/session.py +0 -0
  69. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/cli/utils/process_data.py +0 -0
  70. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/.env.dev +0 -0
  71. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/__init__.py +0 -0
  72. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/__main__.py +0 -0
  73. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/container.py +0 -0
  74. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/log/.gitkeep +0 -0
  75. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/logging_conf.py +0 -0
  76. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/__init__.py +0 -0
  77. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/attack_modules.py +0 -0
  78. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/benchmark.py +0 -0
  79. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/benchmark_result.py +0 -0
  80. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/bookmark.py +0 -0
  81. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/context_strategy.py +0 -0
  82. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/cookbook.py +0 -0
  83. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/dataset.py +0 -0
  84. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/endpoint.py +0 -0
  85. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/metric.py +0 -0
  86. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/prompt_template.py +0 -0
  87. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/recipe.py +0 -0
  88. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/redteam.py +0 -0
  89. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/routes/runner.py +0 -0
  90. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/__init__.py +0 -0
  91. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/benchmark_runner_dto.py +0 -0
  92. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/bookmark_create_dto.py +0 -0
  93. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/cookbook_create_dto.py +0 -0
  94. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/cookbook_response_model.py +0 -0
  95. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/dataset_create_dto.py +0 -0
  96. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/dataset_response_dto.py +0 -0
  97. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/endpoint_create_dto.py +0 -0
  98. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/endpoint_response_model.py +0 -0
  99. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/prompt_response_model.py +0 -0
  100. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/prompt_template_response_model.py +0 -0
  101. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/recipe_create_dto.py +0 -0
  102. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/recipe_response_model.py +0 -0
  103. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/session_create_dto.py +0 -0
  104. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/session_prompt_dto.py +0 -0
  105. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/schemas/session_response_model.py +0 -0
  106. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/__init__.py +0 -0
  107. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/attack_module_service.py +0 -0
  108. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/auto_red_team_test_manager.py +0 -0
  109. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/auto_red_team_test_state.py +0 -0
  110. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/base_service.py +0 -0
  111. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/benchmark_result_service.py +0 -0
  112. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/benchmark_test_state.py +0 -0
  113. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/benchmarking_service.py +0 -0
  114. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/bookmark_service.py +0 -0
  115. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/context_strategy_service.py +0 -0
  116. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/dataset_service.py +0 -0
  117. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/endpoint_service.py +0 -0
  118. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/metric_service.py +0 -0
  119. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/prompt_template_service.py +0 -0
  120. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/recipe_service.py +0 -0
  121. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/runner_service.py +0 -0
  122. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/session_service.py +0 -0
  123. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/utils/exceptions_handler.py +0 -0
  124. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/utils/file_manager.py +0 -0
  125. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/services/utils/results_formatter.py +0 -0
  126. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/status_updater/interface/benchmark_progress_callback.py +0 -0
  127. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/status_updater/interface/redteam_progress_callback.py +0 -0
  128. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/status_updater/moonshot_ui_webhook.py +0 -0
  129. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/temp/.gitkeep +0 -0
  130. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/integrations/web_api/types/types.py +0 -0
  131. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/__init__.py +0 -0
  132. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/__init__.py +0 -0
  133. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_bookmark.py +0 -0
  134. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_connector.py +0 -0
  135. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_connector_endpoint.py +0 -0
  136. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_context_strategy.py +0 -0
  137. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_cookbook.py +0 -0
  138. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_dataset.py +0 -0
  139. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_environment_variables.py +0 -0
  140. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_metrics.py +0 -0
  141. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_prompt_template.py +0 -0
  142. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_recipe.py +0 -0
  143. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_red_teaming.py +0 -0
  144. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_result.py +0 -0
  145. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_run.py +0 -0
  146. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/api/api_session.py +0 -0
  147. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/bookmark/bookmark.py +0 -0
  148. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/bookmark/bookmark_arguments.py +0 -0
  149. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/configs/__init__.py +0 -0
  150. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/configs/env_variables.py +0 -0
  151. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/connectors/__init__.py +0 -0
  152. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/connectors/connector.py +0 -0
  153. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/connectors/connector_prompt_arguments.py +0 -0
  154. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/connectors/connector_response.py +0 -0
  155. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/connectors_endpoints/__init__.py +0 -0
  156. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/connectors_endpoints/connector_endpoint.py +0 -0
  157. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/connectors_endpoints/connector_endpoint_arguments.py +0 -0
  158. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/cookbooks/__init__.py +0 -0
  159. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/cookbooks/cookbook.py +0 -0
  160. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/cookbooks/cookbook_arguments.py +0 -0
  161. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/datasets/__init__.py +0 -0
  162. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/datasets/dataset.py +0 -0
  163. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/datasets/dataset_arguments.py +0 -0
  164. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/messages_constants.py +0 -0
  165. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/metrics/__init__.py +0 -0
  166. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/metrics/metric.py +0 -0
  167. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/metrics/metric_interface.py +0 -0
  168. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/prompt_templates/__init__.py +0 -0
  169. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/prompt_templates/prompt_template.py +0 -0
  170. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/recipes/__init__.py +0 -0
  171. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/recipes/recipe.py +0 -0
  172. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/recipes/recipe_arguments.py +0 -0
  173. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/__init__.py +0 -0
  174. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/attack/__init__.py +0 -0
  175. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/attack/attack_module.py +0 -0
  176. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/attack/attack_module_arguments.py +0 -0
  177. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/attack/context_strategy.py +0 -0
  178. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/context_strategy/__init__.py +0 -0
  179. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/context_strategy/context_strategy_interface.py +0 -0
  180. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/session/__init__.py +0 -0
  181. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/session/chat.py +0 -0
  182. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/session/red_teaming_progress.py +0 -0
  183. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/session/red_teaming_type.py +0 -0
  184. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/redteaming/session/session.py +0 -0
  185. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/results/__init__.py +0 -0
  186. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/results/result.py +0 -0
  187. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/results/result_arguments.py +0 -0
  188. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/runners/__init__.py +0 -0
  189. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/runners/runner.py +0 -0
  190. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/runners/runner_arguments.py +0 -0
  191. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/runners/runner_type.py +0 -0
  192. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/runs/__init__.py +0 -0
  193. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/runs/run.py +0 -0
  194. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/runs/run_arguments.py +0 -0
  195. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/runs/run_progress.py +0 -0
  196. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/runs/run_status.py +0 -0
  197. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/storage/__init__.py +0 -0
  198. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/storage/db_interface.py +0 -0
  199. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/storage/io_interface.py +0 -0
  200. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/storage/storage.py +0 -0
  201. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/utils/__init__.py +0 -0
  202. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/utils/find_feature.py +0 -0
  203. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/utils/import_modules.py +0 -0
  204. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/utils/log.py +0 -0
  205. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/utils/pagination.py +0 -0
  206. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/moonshot/src/utils/timeit.py +0 -0
  207. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/requirements.txt +0 -0
  208. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/third-party/pygments-2.18.0-py3-none-any.whl +0 -0
  209. {aiverify_moonshot-0.7.1 → aiverify_moonshot-0.7.2}/third-party/text_unidecode-1.3-py2.py3-none-any.whl +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiverify-moonshot
3
- Version: 0.7.1
3
+ Version: 0.7.2
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/
@@ -48,7 +48,7 @@ Description-Content-Type: text/markdown
48
48
 
49
49
  ![Moonshot Logo](https://github.com/aiverify-foundation/moonshot/raw/main/misc/aiverify-moonshot-logo.png)
50
50
 
51
- **Version 0.7.1**
51
+ **Version 0.7.2**
52
52
 
53
53
  A simple and modular tool to evaluate any LLM-based AI systems.
54
54
 
@@ -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.7.1**
5
+ **Version 0.7.2**
6
6
 
7
7
  A simple and modular tool to evaluate any LLM-based AI systems.
8
8
 
@@ -71,7 +71,7 @@ def create_app(cfg: providers.Configuration) -> CustomFastAPI:
71
71
  }
72
72
 
73
73
  app: CustomFastAPI = CustomFastAPI(
74
- title="Project Moonshot", version="0.7.1", **app_kwargs
74
+ title="Project Moonshot", version="0.7.2", **app_kwargs
75
75
  )
76
76
 
77
77
  if cfg.cors.enabled():
@@ -1,5 +1,6 @@
1
1
  import asyncio
2
2
  import uuid
3
+ import traceback
3
4
  from typing import Any
4
5
 
5
6
  from dependency_injector.wiring import inject
@@ -82,12 +83,20 @@ class BenchmarkTestManager(BaseService):
82
83
  self, input_data: BenchmarkRunnerDTO, benchmark_type: BenchmarkCollectionType
83
84
  ) -> str:
84
85
  task_id = self.generate_unique_task_id()
85
- runner = self.runner_service.create_runner(
86
- input_data.run_name,
87
- input_data.endpoints,
88
- input_data.description,
89
- self.progress_status_updater.on_progress_update,
90
- )
86
+ try:
87
+ runner = self.runner_service.create_runner(
88
+ input_data.run_name,
89
+ input_data.endpoints,
90
+ input_data.description,
91
+ self.progress_status_updater.on_progress_update,
92
+ )
93
+ except ValueError as e:
94
+ self.logger.error("Failed to create runner - Error: %s, Stacktrace: %s", e, traceback.print_exc())
95
+ raise ValueError("Failed to create runner due to invalid input.")
96
+ except Exception as e:
97
+ self.logger.error("Failed to create runner - Error: %s, Stacktrace: %s", e, traceback.print_exc())
98
+ raise Exception(f"Unexpected error in core library - {e}")
99
+
91
100
  benchmark_coroutine = self.run_test(input_data, benchmark_type, runner)
92
101
 
93
102
  task = asyncio.create_task(benchmark_coroutine, name=task_id)
@@ -21,6 +21,13 @@ class CookbookService(BaseService):
21
21
  Args:
22
22
  cookbook_data (CookbookCreateDTO): Data transfer object containing cookbook details.
23
23
  """
24
+ try:
25
+ existing_cookbook = moonshot_api.api_read_cookbook(cookbook_data.name)
26
+ if existing_cookbook:
27
+ raise ValueError("Cookbook with this name already exists.")
28
+ except Exception:
29
+ # If cookbook does not exist, continue to create
30
+ pass
24
31
  moonshot_api.api_create_cookbook(
25
32
  name=cookbook_data.name,
26
33
  description=cookbook_data.description,
@@ -37,6 +37,14 @@ def api_create_runner(
37
37
  # We do not need to provide the id.
38
38
  # This is because during creating:
39
39
  # 1. the id is slugify from the name and stored as id.
40
+ # Validate arguments
41
+ if not name.strip():
42
+ raise ValueError("Runner name must not be empty.")
43
+
44
+ if not endpoints or not isinstance(endpoints, list) \
45
+ or not all([e.strip() for e in endpoints]):
46
+ raise ValueError("Endpoints must be a non-empty list of strings.")
47
+
40
48
  runner_args = RunnerArguments(
41
49
  id="",
42
50
  name=name,
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "aiverify-moonshot"
7
- version = "0.7.1"
7
+ version = "0.7.2"
8
8
  authors = [
9
9
  { name="AI Verify Foundation", email="info@aiverify.sg" }
10
10
  ]
@@ -110,7 +110,7 @@ allow-direct-references = true
110
110
 
111
111
  [tool.poetry]
112
112
  name = "aiverify-moonshot"
113
- version = "0.7.1"
113
+ version = "0.7.2"
114
114
  description = "A simple and modular tool to evaluate and red-team any LLM application."
115
115
  authors = ["The Moonshot Team <our.moonshot.team@gmail.com>"]
116
116
  readme = "README.md"