Skip to content

Conversation

@kevinbackhouse
Copy link
Collaborator

Refactor available tools into a class so that they can be passed around more easily.

Copilot AI review requested due to automatic review settings October 7, 2025 15:08
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 the available tools data structure into a dedicated AvailableTools class to improve code organization and enable easier passing of tool configurations throughout the application.

  • Introduces a new AvailableTools class to encapsulate personalities, taskflows, and prompts
  • Updates function signatures to accept the AvailableTools instance instead of individual dictionaries
  • Centralizes tool initialization in the main module for better maintainability

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
available_tools.py Defines the new AvailableTools class with constructor for personalities, taskflows, and prompts
main.py Updates function signatures and calls to use the new AvailableTools class throughout the application

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 1 to 5
class AvailableTools:
def __init__(self, personalities: dict, taskflows: dict, prompts: dict):
self.personalities = personalities
self.taskflows = taskflows
self.prompts = prompts
Copy link

Copilot AI Oct 7, 2025

Choose a reason for hiding this comment

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

The AvailableTools class lacks documentation. Consider adding a docstring to explain its purpose and the expected structure of the input dictionaries.

Copilot uses AI. Check for mistakes.
anticomputer
anticomputer previously approved these changes Oct 7, 2025
@kevinbackhouse kevinbackhouse merged commit ee6f860 into GitHubSecurityLab:main Oct 8, 2025
@kevinbackhouse kevinbackhouse deleted the available-tools branch October 8, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants