hackagent 0.4.4__tar.gz → 0.5.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 (315) hide show
  1. {hackagent-0.4.4 → hackagent-0.5.0}/PKG-INFO +1 -1
  2. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/__init__.py +3 -0
  3. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/agent.py +4 -20
  4. hackagent-0.5.0/hackagent/api/__init__.py +4 -0
  5. hackagent-0.5.0/hackagent/api/agent/__init__.py +4 -0
  6. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_create.py +3 -2
  7. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_destroy.py +3 -2
  8. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_list.py +3 -2
  9. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_partial_update.py +3 -2
  10. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_retrieve.py +3 -2
  11. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_update.py +3 -2
  12. hackagent-0.5.0/hackagent/api/apilogs/__init__.py +4 -0
  13. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/apilogs/apilogs_list.py +3 -2
  14. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/apilogs/apilogs_retrieve.py +3 -2
  15. hackagent-0.5.0/hackagent/api/attack/__init__.py +4 -0
  16. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_create.py +3 -2
  17. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_destroy.py +3 -2
  18. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_list.py +3 -2
  19. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_partial_update.py +3 -2
  20. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_retrieve.py +3 -2
  21. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_update.py +3 -2
  22. hackagent-0.5.0/hackagent/api/checkout/__init__.py +4 -0
  23. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/checkout/checkout_create.py +3 -2
  24. hackagent-0.5.0/hackagent/api/generate/__init__.py +4 -0
  25. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/generate/generate_create.py +3 -2
  26. hackagent-0.5.0/hackagent/api/judge/__init__.py +4 -0
  27. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/judge/judge_create.py +3 -2
  28. hackagent-0.5.0/hackagent/api/key/__init__.py +4 -0
  29. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/key/key_create.py +3 -2
  30. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/key/key_destroy.py +3 -2
  31. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/key/key_list.py +3 -2
  32. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/key/key_retrieve.py +3 -2
  33. hackagent-0.5.0/hackagent/api/organization/__init__.py +4 -0
  34. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_create.py +3 -2
  35. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_destroy.py +3 -2
  36. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_list.py +3 -2
  37. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_me_retrieve.py +3 -2
  38. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_partial_update.py +3 -2
  39. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_retrieve.py +3 -2
  40. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_update.py +3 -2
  41. hackagent-0.5.0/hackagent/api/prompt/__init__.py +4 -0
  42. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_create.py +3 -2
  43. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_destroy.py +3 -2
  44. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_list.py +3 -2
  45. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_partial_update.py +3 -2
  46. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_retrieve.py +3 -2
  47. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_update.py +3 -2
  48. hackagent-0.5.0/hackagent/api/result/__init__.py +4 -0
  49. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_create.py +3 -2
  50. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_destroy.py +3 -2
  51. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_list.py +3 -2
  52. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_partial_update.py +3 -2
  53. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_retrieve.py +3 -2
  54. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_trace_create.py +3 -2
  55. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_update.py +3 -2
  56. hackagent-0.5.0/hackagent/api/run/__init__.py +4 -0
  57. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_create.py +3 -2
  58. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_destroy.py +3 -2
  59. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_list.py +3 -2
  60. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_partial_update.py +3 -2
  61. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_result_create.py +3 -2
  62. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_retrieve.py +3 -2
  63. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_run_tests_create.py +3 -2
  64. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_update.py +3 -2
  65. hackagent-0.5.0/hackagent/api/user/__init__.py +4 -0
  66. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_create.py +3 -2
  67. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_destroy.py +3 -2
  68. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_list.py +3 -2
  69. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_me_retrieve.py +3 -2
  70. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_me_update.py +3 -2
  71. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_partial_update.py +3 -2
  72. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_retrieve.py +3 -2
  73. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_update.py +3 -2
  74. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/__init__.py +8 -14
  75. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/base.py +2 -13
  76. hackagent-0.5.0/hackagent/attacks/evaluator/__init__.py +90 -0
  77. hackagent-0.5.0/hackagent/attacks/evaluator/base.py +666 -0
  78. hackagent-0.5.0/hackagent/attacks/evaluator/evaluation_step.py +720 -0
  79. hackagent-0.5.0/hackagent/attacks/evaluator/judge_evaluators.py +267 -0
  80. {hackagent-0.4.4/hackagent/attacks/shared → hackagent-0.5.0/hackagent/attacks/evaluator}/metrics.py +18 -16
  81. hackagent-0.4.4/hackagent/attacks/shared/evaluators.py → hackagent-0.5.0/hackagent/attacks/evaluator/pattern_evaluators.py +18 -16
  82. hackagent-0.5.0/hackagent/attacks/evaluator/sync.py +210 -0
  83. hackagent-0.5.0/hackagent/attacks/generator/__init__.py +31 -0
  84. {hackagent-0.4.4/hackagent/attacks/shared → hackagent-0.5.0/hackagent/attacks/generator}/templates.py +16 -13
  85. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/objectives/__init__.py +2 -13
  86. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/objectives/base.py +2 -13
  87. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/objectives/harmful_behavior.py +2 -13
  88. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/objectives/jailbreak.py +2 -13
  89. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/objectives/policy_violation.py +2 -13
  90. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/orchestrator.py +3 -14
  91. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/registry.py +10 -14
  92. hackagent-0.5.0/hackagent/attacks/shared/__init__.py +21 -0
  93. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/shared/progress.py +2 -13
  94. hackagent-0.5.0/hackagent/attacks/shared/response_utils.py +93 -0
  95. hackagent-0.5.0/hackagent/attacks/shared/router_factory.py +172 -0
  96. hackagent-0.5.0/hackagent/attacks/shared/tui.py +61 -0
  97. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/shared/utils.py +2 -13
  98. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/__init__.py +2 -13
  99. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/__init__.py +2 -13
  100. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/attack.py +35 -204
  101. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/completions.py +10 -13
  102. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/config.py +21 -27
  103. hackagent-0.5.0/hackagent/attacks/techniques/advprefix/evaluation.py +451 -0
  104. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/generate.py +2 -13
  105. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/utils.py +4 -101
  106. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/base.py +30 -112
  107. hackagent-0.5.0/hackagent/attacks/techniques/baseline/__init__.py +20 -0
  108. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/baseline/attack.py +14 -55
  109. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/baseline/config.py +2 -13
  110. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/baseline/evaluation.py +3 -14
  111. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/baseline/generation.py +5 -27
  112. {hackagent-0.4.4/hackagent/cli → hackagent-0.5.0/hackagent/attacks/techniques/flipattack}/__init__.py +5 -3
  113. hackagent-0.5.0/hackagent/attacks/techniques/flipattack/attack.py +242 -0
  114. hackagent-0.5.0/hackagent/attacks/techniques/flipattack/config.py +121 -0
  115. hackagent-0.5.0/hackagent/attacks/techniques/flipattack/evaluation.py +233 -0
  116. hackagent-0.5.0/hackagent/attacks/techniques/flipattack/evaluation.py.bak +285 -0
  117. hackagent-0.5.0/hackagent/attacks/techniques/flipattack/flip_attack.py +239 -0
  118. hackagent-0.5.0/hackagent/attacks/techniques/flipattack/generation.py +171 -0
  119. hackagent-0.5.0/hackagent/attacks/techniques/pair/__init__.py +15 -0
  120. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/pair/attack.py +68 -179
  121. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/pair/config.py +2 -13
  122. hackagent-0.5.0/hackagent/cli/__init__.py +8 -0
  123. hackagent-0.5.0/hackagent/cli/commands/__init__.py +9 -0
  124. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/commands/agent.py +3 -2
  125. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/commands/attack.py +2 -13
  126. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/commands/config.py +2 -13
  127. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/commands/results.py +2 -13
  128. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/config.py +2 -13
  129. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/main.py +2 -13
  130. hackagent-0.5.0/hackagent/cli/tui/__init__.py +20 -0
  131. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/actions_logger.py +2 -13
  132. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/app.py +2 -13
  133. hackagent-0.5.0/hackagent/cli/tui/attack_specs.py +664 -0
  134. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/base.py +2 -13
  135. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/logger.py +2 -13
  136. hackagent-0.5.0/hackagent/cli/tui/views/__init__.py +22 -0
  137. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/views/agents.py +2 -13
  138. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/views/attacks.py +378 -136
  139. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/views/config.py +2 -13
  140. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/views/dashboard.py +2 -13
  141. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/views/results.py +2 -13
  142. hackagent-0.5.0/hackagent/cli/tui/widgets/__init__.py +13 -0
  143. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/widgets/actions.py +2 -13
  144. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/widgets/logs.py +2 -13
  145. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/utils.py +2 -13
  146. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/client.py +3 -3
  147. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/datasets/__init__.py +2 -13
  148. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/datasets/base.py +2 -13
  149. hackagent-0.5.0/hackagent/datasets/presets.py +414 -0
  150. hackagent-0.5.0/hackagent/datasets/providers/__init__.py +12 -0
  151. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/datasets/providers/file.py +2 -13
  152. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/datasets/providers/huggingface.py +2 -13
  153. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/datasets/registry.py +2 -13
  154. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/errors.py +3 -1
  155. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/logger.py +2 -13
  156. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/__init__.py +3 -0
  157. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/agent.py +3 -2
  158. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/agent_request.py +3 -2
  159. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/api_token_log.py +3 -1
  160. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/attack.py +3 -1
  161. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/attack_request.py +3 -2
  162. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/checkout_session_request_request.py +3 -2
  163. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/checkout_session_response.py +3 -1
  164. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/choice.py +3 -3
  165. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/choice_message.py +3 -1
  166. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/evaluation_status_enum.py +3 -0
  167. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/generate_error_response.py +3 -1
  168. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/generate_request_request.py +3 -4
  169. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/generate_success_response.py +3 -3
  170. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/generic_error_response.py +3 -2
  171. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/message_request.py +3 -1
  172. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/organization.py +3 -1
  173. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/organization_minimal.py +3 -1
  174. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/organization_request.py +3 -2
  175. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_agent_list.py +3 -4
  176. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_api_token_log_list.py +3 -4
  177. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_attack_list.py +3 -4
  178. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_organization_list.py +3 -4
  179. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_prompt_list.py +3 -4
  180. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_result_list.py +3 -4
  181. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_run_list.py +3 -4
  182. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_user_api_key_list.py +3 -4
  183. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_user_profile_list.py +3 -4
  184. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_agent_request.py +3 -2
  185. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_attack_request.py +3 -2
  186. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_organization_request.py +3 -2
  187. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_prompt_request.py +3 -2
  188. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_result_request.py +3 -2
  189. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_run_request.py +3 -2
  190. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_user_profile_request.py +3 -2
  191. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/prompt.py +3 -2
  192. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/prompt_request.py +3 -2
  193. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/result.py +3 -2
  194. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/result_list_evaluation_status.py +3 -0
  195. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/result_request.py +3 -2
  196. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/run.py +3 -2
  197. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/run_list_status.py +3 -0
  198. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/run_request.py +3 -2
  199. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/status_enum.py +3 -0
  200. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/step_type_enum.py +3 -0
  201. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/trace.py +3 -2
  202. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/trace_request.py +3 -2
  203. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/usage.py +3 -1
  204. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/user_api_key.py +3 -3
  205. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/user_api_key_request.py +3 -2
  206. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/user_profile.py +3 -2
  207. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/user_profile_minimal.py +3 -1
  208. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/user_profile_request.py +3 -2
  209. hackagent-0.5.0/hackagent/risks/__init__.py +75 -0
  210. hackagent-0.5.0/hackagent/risks/base.py +106 -0
  211. hackagent-0.5.0/hackagent/risks/craft_adversarial_data/__init__.py +14 -0
  212. hackagent-0.5.0/hackagent/risks/craft_adversarial_data/profile.py +27 -0
  213. hackagent-0.5.0/hackagent/risks/craft_adversarial_data/types.py +21 -0
  214. hackagent-0.5.0/hackagent/risks/craft_adversarial_data/vulnerabilities.py +30 -0
  215. hackagent-0.5.0/hackagent/risks/credential_exposure/__init__.py +16 -0
  216. hackagent-0.5.0/hackagent/risks/credential_exposure/profile.py +17 -0
  217. hackagent-0.5.0/hackagent/risks/credential_exposure/types.py +21 -0
  218. hackagent-0.5.0/hackagent/risks/credential_exposure/vulnerabilities.py +30 -0
  219. hackagent-0.5.0/hackagent/risks/excessive_agency/__init__.py +8 -0
  220. hackagent-0.5.0/hackagent/risks/excessive_agency/profile.py +33 -0
  221. hackagent-0.5.0/hackagent/risks/excessive_agency/types.py +21 -0
  222. hackagent-0.5.0/hackagent/risks/excessive_agency/vulnerabilities.py +30 -0
  223. hackagent-0.5.0/hackagent/risks/input_manipulation_attack/__init__.py +18 -0
  224. hackagent-0.5.0/hackagent/risks/input_manipulation_attack/profile.py +27 -0
  225. hackagent-0.5.0/hackagent/risks/input_manipulation_attack/types.py +21 -0
  226. hackagent-0.5.0/hackagent/risks/input_manipulation_attack/vulnerabilities.py +30 -0
  227. hackagent-0.5.0/hackagent/risks/jailbreak/__init__.py +8 -0
  228. hackagent-0.5.0/hackagent/risks/jailbreak/profile.py +50 -0
  229. hackagent-0.5.0/hackagent/risks/jailbreak/types.py +27 -0
  230. hackagent-0.5.0/hackagent/risks/jailbreak/vulnerabilities.py +28 -0
  231. hackagent-0.5.0/hackagent/risks/malicious_tool_invocation/__init__.py +18 -0
  232. hackagent-0.5.0/hackagent/risks/malicious_tool_invocation/profile.py +27 -0
  233. hackagent-0.5.0/hackagent/risks/malicious_tool_invocation/types.py +21 -0
  234. hackagent-0.5.0/hackagent/risks/malicious_tool_invocation/vulnerabilities.py +30 -0
  235. hackagent-0.5.0/hackagent/risks/misinformation/__init__.py +8 -0
  236. hackagent-0.5.0/hackagent/risks/misinformation/profile.py +33 -0
  237. hackagent-0.5.0/hackagent/risks/misinformation/types.py +21 -0
  238. hackagent-0.5.0/hackagent/risks/misinformation/vulnerabilities.py +30 -0
  239. hackagent-0.5.0/hackagent/risks/model_evasion/__init__.py +8 -0
  240. hackagent-0.5.0/hackagent/risks/model_evasion/profile.py +33 -0
  241. hackagent-0.5.0/hackagent/risks/model_evasion/types.py +21 -0
  242. hackagent-0.5.0/hackagent/risks/model_evasion/vulnerabilities.py +30 -0
  243. hackagent-0.5.0/hackagent/risks/profile_helpers.py +68 -0
  244. hackagent-0.5.0/hackagent/risks/profile_types.py +151 -0
  245. hackagent-0.5.0/hackagent/risks/prompt_injection/__init__.py +14 -0
  246. hackagent-0.5.0/hackagent/risks/prompt_injection/profile.py +43 -0
  247. hackagent-0.5.0/hackagent/risks/prompt_injection/templates.py +66 -0
  248. hackagent-0.5.0/hackagent/risks/prompt_injection/types.py +21 -0
  249. hackagent-0.5.0/hackagent/risks/prompt_injection/vulnerabilities.py +30 -0
  250. hackagent-0.5.0/hackagent/risks/public_facing_application_exploitation/__init__.py +18 -0
  251. hackagent-0.5.0/hackagent/risks/public_facing_application_exploitation/profile.py +29 -0
  252. hackagent-0.5.0/hackagent/risks/public_facing_application_exploitation/types.py +23 -0
  253. hackagent-0.5.0/hackagent/risks/public_facing_application_exploitation/vulnerabilities.py +30 -0
  254. hackagent-0.5.0/hackagent/risks/registry.py +100 -0
  255. hackagent-0.5.0/hackagent/risks/sensitive_information_disclosure/__init__.py +18 -0
  256. hackagent-0.5.0/hackagent/risks/sensitive_information_disclosure/profile.py +30 -0
  257. hackagent-0.5.0/hackagent/risks/sensitive_information_disclosure/types.py +21 -0
  258. hackagent-0.5.0/hackagent/risks/sensitive_information_disclosure/vulnerabilities.py +30 -0
  259. hackagent-0.5.0/hackagent/risks/system_prompt_leakage/__init__.py +16 -0
  260. hackagent-0.5.0/hackagent/risks/system_prompt_leakage/profile.py +27 -0
  261. hackagent-0.5.0/hackagent/risks/system_prompt_leakage/types.py +24 -0
  262. hackagent-0.5.0/hackagent/risks/system_prompt_leakage/vulnerabilities.py +30 -0
  263. hackagent-0.5.0/hackagent/risks/utils.py +31 -0
  264. hackagent-0.5.0/hackagent/risks/vector_embedding_weaknesses_exploit/__init__.py +18 -0
  265. hackagent-0.5.0/hackagent/risks/vector_embedding_weaknesses_exploit/profile.py +35 -0
  266. hackagent-0.5.0/hackagent/risks/vector_embedding_weaknesses_exploit/types.py +21 -0
  267. hackagent-0.5.0/hackagent/risks/vector_embedding_weaknesses_exploit/vulnerabilities.py +30 -0
  268. hackagent-0.5.0/hackagent/router/__init__.py +20 -0
  269. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/__init__.py +2 -13
  270. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/base.py +2 -13
  271. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/google_adk.py +2 -13
  272. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/litellm.py +2 -13
  273. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/ollama.py +2 -13
  274. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/openai.py +2 -13
  275. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/router.py +2 -286
  276. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/tracking/__init__.py +4 -13
  277. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/tracking/context.py +37 -26
  278. hackagent-0.5.0/hackagent/router/tracking/coordinator.py +517 -0
  279. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/tracking/decorators.py +2 -13
  280. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/tracking/step.py +29 -127
  281. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/tracking/tracker.py +29 -21
  282. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/types.py +2 -13
  283. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/types.py +3 -1
  284. {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/utils.py +2 -13
  285. {hackagent-0.4.4 → hackagent-0.5.0}/pyproject.toml +7 -1
  286. hackagent-0.4.4/hackagent/api/__init__.py +0 -1
  287. hackagent-0.4.4/hackagent/api/agent/__init__.py +0 -1
  288. hackagent-0.4.4/hackagent/api/apilogs/__init__.py +0 -1
  289. hackagent-0.4.4/hackagent/api/attack/__init__.py +0 -1
  290. hackagent-0.4.4/hackagent/api/checkout/__init__.py +0 -1
  291. hackagent-0.4.4/hackagent/api/generate/__init__.py +0 -1
  292. hackagent-0.4.4/hackagent/api/judge/__init__.py +0 -1
  293. hackagent-0.4.4/hackagent/api/key/__init__.py +0 -1
  294. hackagent-0.4.4/hackagent/api/organization/__init__.py +0 -1
  295. hackagent-0.4.4/hackagent/api/prompt/__init__.py +0 -1
  296. hackagent-0.4.4/hackagent/api/result/__init__.py +0 -1
  297. hackagent-0.4.4/hackagent/api/run/__init__.py +0 -1
  298. hackagent-0.4.4/hackagent/api/user/__init__.py +0 -1
  299. hackagent-0.4.4/hackagent/attacks/shared/__init__.py +0 -24
  300. hackagent-0.4.4/hackagent/attacks/techniques/advprefix/evaluation.py +0 -911
  301. hackagent-0.4.4/hackagent/attacks/techniques/advprefix/evaluators.py +0 -761
  302. hackagent-0.4.4/hackagent/attacks/techniques/baseline/__init__.py +0 -31
  303. hackagent-0.4.4/hackagent/attacks/techniques/pair/__init__.py +0 -26
  304. hackagent-0.4.4/hackagent/cli/commands/__init__.py +0 -20
  305. hackagent-0.4.4/hackagent/cli/tui/__init__.py +0 -31
  306. hackagent-0.4.4/hackagent/cli/tui/views/__init__.py +0 -33
  307. hackagent-0.4.4/hackagent/cli/tui/widgets/__init__.py +0 -24
  308. hackagent-0.4.4/hackagent/datasets/presets.py +0 -223
  309. hackagent-0.4.4/hackagent/datasets/providers/__init__.py +0 -23
  310. hackagent-0.4.4/hackagent/router/__init__.py +0 -31
  311. hackagent-0.4.4/hackagent/vulnerabilities/__init__.py +0 -13
  312. hackagent-0.4.4/hackagent/vulnerabilities/prompts.py +0 -81
  313. {hackagent-0.4.4 → hackagent-0.5.0}/.gitignore +0 -0
  314. {hackagent-0.4.4 → hackagent-0.5.0}/LICENSE +0 -0
  315. {hackagent-0.4.4 → hackagent-0.5.0}/README.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hackagent
3
- Version: 0.4.4
3
+ Version: 0.5.0
4
4
  Summary: HackAgent is an open-source security toolkit to detect vulnerabilities of your AI Agents.
5
5
  Author-email: AI Security Lab <ais@ai4i.it>
6
6
  License: Apache-2.0
@@ -1,3 +1,6 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  """A client library for accessing HackAgent API"""
2
5
 
3
6
  from .agent import HackAgent
@@ -1,16 +1,5 @@
1
- # Copyright 2025 - AI4I. All rights reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
14
3
 
15
4
  import logging
16
5
  from typing import TYPE_CHECKING, Any, Dict, Optional, Union
@@ -20,7 +9,6 @@ from hackagent.client import AuthenticatedClient
20
9
  from hackagent.errors import HackAgentError
21
10
  from hackagent.router import AgentRouter
22
11
  from hackagent.router.types import AgentTypeEnum
23
- from hackagent.vulnerabilities.prompts import DEFAULT_PROMPTS
24
12
 
25
13
  # Lazy import for attack orchestrators to avoid ~0.5s startup delay
26
14
  if TYPE_CHECKING:
@@ -46,10 +34,6 @@ class HackAgent:
46
34
 
47
35
  Attributes:
48
36
  client: An `AuthenticatedClient` instance for API communication.
49
- prompts: A dictionary of default prompts. This dictionary is a copy of
50
- `DEFAULT_PROMPTS` and can be modified after instantiation if needed,
51
- though the primary mechanism for custom prompts is usually via attack
52
- configurations.
53
37
  router: An `AgentRouter` instance managing the agent's representation
54
38
  in the HackAgent backend.
55
39
  attack_strategies: A dictionary mapping strategy names to their
@@ -117,8 +101,6 @@ class HackAgent:
117
101
  timeout=timeout,
118
102
  )
119
103
 
120
- self.prompts = DEFAULT_PROMPTS.copy()
121
-
122
104
  processed_agent_type = utils.resolve_agent_type(agent_type)
123
105
 
124
106
  self.router = AgentRouter(
@@ -142,12 +124,14 @@ class HackAgent:
142
124
  AdvPrefixOrchestrator,
143
125
  BaselineOrchestrator,
144
126
  PAIROrchestrator,
127
+ FlipAttackOrchestrator,
145
128
  )
146
129
 
147
130
  self._attack_strategies = {
148
131
  "advprefix": AdvPrefixOrchestrator(hack_agent=self),
149
132
  "baseline": BaselineOrchestrator(hack_agent=self),
150
133
  "pair": PAIROrchestrator(hack_agent=self),
134
+ "flipattack": FlipAttackOrchestrator(hack_agent=self),
151
135
  }
152
136
  return self._attack_strategies
153
137
 
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains methods for accessing the API"""
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains endpoint functions for accessing the API"""
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.agent import Agent
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...types import Response
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.paginated_agent_list import PaginatedAgentList
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.agent import Agent
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.agent import Agent
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.agent import Agent
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains endpoint functions for accessing the API"""
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.paginated_api_token_log_list import PaginatedAPITokenLogList
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.api_token_log import APITokenLog
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains endpoint functions for accessing the API"""
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.attack import Attack
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...types import Response
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.paginated_attack_list import PaginatedAttackList
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.attack import Attack
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.attack import Attack
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.attack import Attack
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains endpoint functions for accessing the API"""
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.checkout_session_request_request import CheckoutSessionRequestRequest
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains endpoint functions for accessing the API"""
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.generate_error_response import GenerateErrorResponse
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains endpoint functions for accessing the API"""
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.generate_error_response import GenerateErrorResponse
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains endpoint functions for accessing the API"""
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.user_api_key import UserAPIKey
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...types import Response
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.paginated_user_api_key_list import PaginatedUserAPIKeyList
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.user_api_key import UserAPIKey
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains endpoint functions for accessing the API"""
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.organization import Organization
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...types import Response
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.paginated_organization_list import PaginatedOrganizationList
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.organization import Organization
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.organization import Organization
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.organization import Organization
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.organization import Organization
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains endpoint functions for accessing the API"""
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.prompt import Prompt
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...types import Response
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.paginated_prompt_list import PaginatedPromptList
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.patched_prompt_request import PatchedPromptRequest
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.prompt import Prompt
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.prompt import Prompt
@@ -0,0 +1,4 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Contains endpoint functions for accessing the API"""
@@ -1,8 +1,9 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
-
4
6
  import httpx
5
-
6
7
  from ... import errors
7
8
  from ...client import AuthenticatedClient, Client
8
9
  from ...models.result import Result
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...types import Response
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.paginated_result_list import PaginatedResultList
@@ -1,9 +1,10 @@
1
+ # Copyright 2026 - AI4I. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
1
4
  from http import HTTPStatus
2
5
  from typing import Any, Optional, Union
3
6
  from uuid import UUID
4
-
5
7
  import httpx
6
-
7
8
  from ... import errors
8
9
  from ...client import AuthenticatedClient, Client
9
10
  from ...models.patched_result_request import PatchedResultRequest