Skip to content

Conversation

@DianaStrauss
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors prompt generation modules by migrating package imports from usecases to utils and adds an optional prompt_file parameter across various prompt classes for enhanced configurability.

  • Updated import paths from usecases to utils in multiple files
  • Introduced an optional prompt_file parameter to several constructors and method signatures
  • Added minor logging improvements using rich Panel in prompt outputs

Reviewed Changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/hackingBuddyGPT/utils/prompt_generation/prompts/state_learning/state_planning_prompt.py Updated imports and added prompt_file parameter to init
src/hackingBuddyGPT/utils/prompt_generation/prompts/state_learning/in_context_learning_prompt.py Added prompt_file and turn parameters, updated documentation steps logic, and refactored several prompt generation functions
src/hackingBuddyGPT/utils/prompt_generation/prompts/basic_prompt.py Added prompt_file parameter and implemented parse_prompt_file for file-based prompt loading
src/hackingBuddyGPT/utils/prompt_generation/prompt_engineer.py Updated imports and passed prompt_file to strategy-specific prompt constructors
Other files (pentesting_information.py, configuration_handler.py, simple_web_api_testing.py, etc.) Updated import paths and adjusted prompt_file usage where applicable
@andreashappe andreashappe merged commit 84f6795 into development May 23, 2025
5 checks passed
@andreashappe andreashappe deleted the adapt_prompt_engineer branch May 23, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants