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.
- {hackagent-0.4.4 → hackagent-0.5.0}/PKG-INFO +1 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/__init__.py +3 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/agent.py +4 -20
- hackagent-0.5.0/hackagent/api/__init__.py +4 -0
- hackagent-0.5.0/hackagent/api/agent/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_destroy.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_list.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_partial_update.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_retrieve.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/agent/agent_update.py +3 -2
- hackagent-0.5.0/hackagent/api/apilogs/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/apilogs/apilogs_list.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/apilogs/apilogs_retrieve.py +3 -2
- hackagent-0.5.0/hackagent/api/attack/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_destroy.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_list.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_partial_update.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_retrieve.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/attack/attack_update.py +3 -2
- hackagent-0.5.0/hackagent/api/checkout/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/checkout/checkout_create.py +3 -2
- hackagent-0.5.0/hackagent/api/generate/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/generate/generate_create.py +3 -2
- hackagent-0.5.0/hackagent/api/judge/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/judge/judge_create.py +3 -2
- hackagent-0.5.0/hackagent/api/key/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/key/key_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/key/key_destroy.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/key/key_list.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/key/key_retrieve.py +3 -2
- hackagent-0.5.0/hackagent/api/organization/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_destroy.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_list.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_me_retrieve.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_partial_update.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_retrieve.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_update.py +3 -2
- hackagent-0.5.0/hackagent/api/prompt/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_destroy.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_list.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_partial_update.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_retrieve.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/prompt/prompt_update.py +3 -2
- hackagent-0.5.0/hackagent/api/result/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_destroy.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_list.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_partial_update.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_retrieve.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_trace_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/result/result_update.py +3 -2
- hackagent-0.5.0/hackagent/api/run/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_destroy.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_list.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_partial_update.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_result_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_retrieve.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_run_tests_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/run/run_update.py +3 -2
- hackagent-0.5.0/hackagent/api/user/__init__.py +4 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_create.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_destroy.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_list.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_me_retrieve.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_me_update.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_partial_update.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_retrieve.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/user/user_update.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/__init__.py +8 -14
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/base.py +2 -13
- hackagent-0.5.0/hackagent/attacks/evaluator/__init__.py +90 -0
- hackagent-0.5.0/hackagent/attacks/evaluator/base.py +666 -0
- hackagent-0.5.0/hackagent/attacks/evaluator/evaluation_step.py +720 -0
- hackagent-0.5.0/hackagent/attacks/evaluator/judge_evaluators.py +267 -0
- {hackagent-0.4.4/hackagent/attacks/shared → hackagent-0.5.0/hackagent/attacks/evaluator}/metrics.py +18 -16
- hackagent-0.4.4/hackagent/attacks/shared/evaluators.py → hackagent-0.5.0/hackagent/attacks/evaluator/pattern_evaluators.py +18 -16
- hackagent-0.5.0/hackagent/attacks/evaluator/sync.py +210 -0
- hackagent-0.5.0/hackagent/attacks/generator/__init__.py +31 -0
- {hackagent-0.4.4/hackagent/attacks/shared → hackagent-0.5.0/hackagent/attacks/generator}/templates.py +16 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/objectives/__init__.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/objectives/base.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/objectives/harmful_behavior.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/objectives/jailbreak.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/objectives/policy_violation.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/orchestrator.py +3 -14
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/registry.py +10 -14
- hackagent-0.5.0/hackagent/attacks/shared/__init__.py +21 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/shared/progress.py +2 -13
- hackagent-0.5.0/hackagent/attacks/shared/response_utils.py +93 -0
- hackagent-0.5.0/hackagent/attacks/shared/router_factory.py +172 -0
- hackagent-0.5.0/hackagent/attacks/shared/tui.py +61 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/shared/utils.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/__init__.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/__init__.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/attack.py +35 -204
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/completions.py +10 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/config.py +21 -27
- hackagent-0.5.0/hackagent/attacks/techniques/advprefix/evaluation.py +451 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/generate.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/advprefix/utils.py +4 -101
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/base.py +30 -112
- hackagent-0.5.0/hackagent/attacks/techniques/baseline/__init__.py +20 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/baseline/attack.py +14 -55
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/baseline/config.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/baseline/evaluation.py +3 -14
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/baseline/generation.py +5 -27
- {hackagent-0.4.4/hackagent/cli → hackagent-0.5.0/hackagent/attacks/techniques/flipattack}/__init__.py +5 -3
- hackagent-0.5.0/hackagent/attacks/techniques/flipattack/attack.py +242 -0
- hackagent-0.5.0/hackagent/attacks/techniques/flipattack/config.py +121 -0
- hackagent-0.5.0/hackagent/attacks/techniques/flipattack/evaluation.py +233 -0
- hackagent-0.5.0/hackagent/attacks/techniques/flipattack/evaluation.py.bak +285 -0
- hackagent-0.5.0/hackagent/attacks/techniques/flipattack/flip_attack.py +239 -0
- hackagent-0.5.0/hackagent/attacks/techniques/flipattack/generation.py +171 -0
- hackagent-0.5.0/hackagent/attacks/techniques/pair/__init__.py +15 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/pair/attack.py +68 -179
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/attacks/techniques/pair/config.py +2 -13
- hackagent-0.5.0/hackagent/cli/__init__.py +8 -0
- hackagent-0.5.0/hackagent/cli/commands/__init__.py +9 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/commands/agent.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/commands/attack.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/commands/config.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/commands/results.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/config.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/main.py +2 -13
- hackagent-0.5.0/hackagent/cli/tui/__init__.py +20 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/actions_logger.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/app.py +2 -13
- hackagent-0.5.0/hackagent/cli/tui/attack_specs.py +664 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/base.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/logger.py +2 -13
- hackagent-0.5.0/hackagent/cli/tui/views/__init__.py +22 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/views/agents.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/views/attacks.py +378 -136
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/views/config.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/views/dashboard.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/views/results.py +2 -13
- hackagent-0.5.0/hackagent/cli/tui/widgets/__init__.py +13 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/widgets/actions.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/tui/widgets/logs.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/cli/utils.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/client.py +3 -3
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/datasets/__init__.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/datasets/base.py +2 -13
- hackagent-0.5.0/hackagent/datasets/presets.py +414 -0
- hackagent-0.5.0/hackagent/datasets/providers/__init__.py +12 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/datasets/providers/file.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/datasets/providers/huggingface.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/datasets/registry.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/errors.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/logger.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/__init__.py +3 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/agent.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/agent_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/api_token_log.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/attack.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/attack_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/checkout_session_request_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/checkout_session_response.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/choice.py +3 -3
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/choice_message.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/evaluation_status_enum.py +3 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/generate_error_response.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/generate_request_request.py +3 -4
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/generate_success_response.py +3 -3
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/generic_error_response.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/message_request.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/organization.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/organization_minimal.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/organization_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_agent_list.py +3 -4
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_api_token_log_list.py +3 -4
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_attack_list.py +3 -4
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_organization_list.py +3 -4
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_prompt_list.py +3 -4
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_result_list.py +3 -4
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_run_list.py +3 -4
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_user_api_key_list.py +3 -4
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/paginated_user_profile_list.py +3 -4
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_agent_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_attack_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_organization_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_prompt_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_result_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_run_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/patched_user_profile_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/prompt.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/prompt_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/result.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/result_list_evaluation_status.py +3 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/result_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/run.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/run_list_status.py +3 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/run_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/status_enum.py +3 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/step_type_enum.py +3 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/trace.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/trace_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/usage.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/user_api_key.py +3 -3
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/user_api_key_request.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/user_profile.py +3 -2
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/user_profile_minimal.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/models/user_profile_request.py +3 -2
- hackagent-0.5.0/hackagent/risks/__init__.py +75 -0
- hackagent-0.5.0/hackagent/risks/base.py +106 -0
- hackagent-0.5.0/hackagent/risks/craft_adversarial_data/__init__.py +14 -0
- hackagent-0.5.0/hackagent/risks/craft_adversarial_data/profile.py +27 -0
- hackagent-0.5.0/hackagent/risks/craft_adversarial_data/types.py +21 -0
- hackagent-0.5.0/hackagent/risks/craft_adversarial_data/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/credential_exposure/__init__.py +16 -0
- hackagent-0.5.0/hackagent/risks/credential_exposure/profile.py +17 -0
- hackagent-0.5.0/hackagent/risks/credential_exposure/types.py +21 -0
- hackagent-0.5.0/hackagent/risks/credential_exposure/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/excessive_agency/__init__.py +8 -0
- hackagent-0.5.0/hackagent/risks/excessive_agency/profile.py +33 -0
- hackagent-0.5.0/hackagent/risks/excessive_agency/types.py +21 -0
- hackagent-0.5.0/hackagent/risks/excessive_agency/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/input_manipulation_attack/__init__.py +18 -0
- hackagent-0.5.0/hackagent/risks/input_manipulation_attack/profile.py +27 -0
- hackagent-0.5.0/hackagent/risks/input_manipulation_attack/types.py +21 -0
- hackagent-0.5.0/hackagent/risks/input_manipulation_attack/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/jailbreak/__init__.py +8 -0
- hackagent-0.5.0/hackagent/risks/jailbreak/profile.py +50 -0
- hackagent-0.5.0/hackagent/risks/jailbreak/types.py +27 -0
- hackagent-0.5.0/hackagent/risks/jailbreak/vulnerabilities.py +28 -0
- hackagent-0.5.0/hackagent/risks/malicious_tool_invocation/__init__.py +18 -0
- hackagent-0.5.0/hackagent/risks/malicious_tool_invocation/profile.py +27 -0
- hackagent-0.5.0/hackagent/risks/malicious_tool_invocation/types.py +21 -0
- hackagent-0.5.0/hackagent/risks/malicious_tool_invocation/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/misinformation/__init__.py +8 -0
- hackagent-0.5.0/hackagent/risks/misinformation/profile.py +33 -0
- hackagent-0.5.0/hackagent/risks/misinformation/types.py +21 -0
- hackagent-0.5.0/hackagent/risks/misinformation/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/model_evasion/__init__.py +8 -0
- hackagent-0.5.0/hackagent/risks/model_evasion/profile.py +33 -0
- hackagent-0.5.0/hackagent/risks/model_evasion/types.py +21 -0
- hackagent-0.5.0/hackagent/risks/model_evasion/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/profile_helpers.py +68 -0
- hackagent-0.5.0/hackagent/risks/profile_types.py +151 -0
- hackagent-0.5.0/hackagent/risks/prompt_injection/__init__.py +14 -0
- hackagent-0.5.0/hackagent/risks/prompt_injection/profile.py +43 -0
- hackagent-0.5.0/hackagent/risks/prompt_injection/templates.py +66 -0
- hackagent-0.5.0/hackagent/risks/prompt_injection/types.py +21 -0
- hackagent-0.5.0/hackagent/risks/prompt_injection/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/public_facing_application_exploitation/__init__.py +18 -0
- hackagent-0.5.0/hackagent/risks/public_facing_application_exploitation/profile.py +29 -0
- hackagent-0.5.0/hackagent/risks/public_facing_application_exploitation/types.py +23 -0
- hackagent-0.5.0/hackagent/risks/public_facing_application_exploitation/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/registry.py +100 -0
- hackagent-0.5.0/hackagent/risks/sensitive_information_disclosure/__init__.py +18 -0
- hackagent-0.5.0/hackagent/risks/sensitive_information_disclosure/profile.py +30 -0
- hackagent-0.5.0/hackagent/risks/sensitive_information_disclosure/types.py +21 -0
- hackagent-0.5.0/hackagent/risks/sensitive_information_disclosure/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/system_prompt_leakage/__init__.py +16 -0
- hackagent-0.5.0/hackagent/risks/system_prompt_leakage/profile.py +27 -0
- hackagent-0.5.0/hackagent/risks/system_prompt_leakage/types.py +24 -0
- hackagent-0.5.0/hackagent/risks/system_prompt_leakage/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/risks/utils.py +31 -0
- hackagent-0.5.0/hackagent/risks/vector_embedding_weaknesses_exploit/__init__.py +18 -0
- hackagent-0.5.0/hackagent/risks/vector_embedding_weaknesses_exploit/profile.py +35 -0
- hackagent-0.5.0/hackagent/risks/vector_embedding_weaknesses_exploit/types.py +21 -0
- hackagent-0.5.0/hackagent/risks/vector_embedding_weaknesses_exploit/vulnerabilities.py +30 -0
- hackagent-0.5.0/hackagent/router/__init__.py +20 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/__init__.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/base.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/google_adk.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/litellm.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/ollama.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/adapters/openai.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/router.py +2 -286
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/tracking/__init__.py +4 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/tracking/context.py +37 -26
- hackagent-0.5.0/hackagent/router/tracking/coordinator.py +517 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/tracking/decorators.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/tracking/step.py +29 -127
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/tracking/tracker.py +29 -21
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/router/types.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/types.py +3 -1
- {hackagent-0.4.4 → hackagent-0.5.0}/hackagent/utils.py +2 -13
- {hackagent-0.4.4 → hackagent-0.5.0}/pyproject.toml +7 -1
- hackagent-0.4.4/hackagent/api/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/agent/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/apilogs/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/attack/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/checkout/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/generate/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/judge/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/key/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/organization/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/prompt/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/result/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/run/__init__.py +0 -1
- hackagent-0.4.4/hackagent/api/user/__init__.py +0 -1
- hackagent-0.4.4/hackagent/attacks/shared/__init__.py +0 -24
- hackagent-0.4.4/hackagent/attacks/techniques/advprefix/evaluation.py +0 -911
- hackagent-0.4.4/hackagent/attacks/techniques/advprefix/evaluators.py +0 -761
- hackagent-0.4.4/hackagent/attacks/techniques/baseline/__init__.py +0 -31
- hackagent-0.4.4/hackagent/attacks/techniques/pair/__init__.py +0 -26
- hackagent-0.4.4/hackagent/cli/commands/__init__.py +0 -20
- hackagent-0.4.4/hackagent/cli/tui/__init__.py +0 -31
- hackagent-0.4.4/hackagent/cli/tui/views/__init__.py +0 -33
- hackagent-0.4.4/hackagent/cli/tui/widgets/__init__.py +0 -24
- hackagent-0.4.4/hackagent/datasets/presets.py +0 -223
- hackagent-0.4.4/hackagent/datasets/providers/__init__.py +0 -23
- hackagent-0.4.4/hackagent/router/__init__.py +0 -31
- hackagent-0.4.4/hackagent/vulnerabilities/__init__.py +0 -13
- hackagent-0.4.4/hackagent/vulnerabilities/prompts.py +0 -81
- {hackagent-0.4.4 → hackagent-0.5.0}/.gitignore +0 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/LICENSE +0 -0
- {hackagent-0.4.4 → hackagent-0.5.0}/README.md +0 -0
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
# Copyright
|
|
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
|
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
{hackagent-0.4.4 → hackagent-0.5.0}/hackagent/api/organization/organization_partial_update.py
RENAMED
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|