Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic module discovery #21

Open
StijnDeJong opened this issue Sep 3, 2024 · 0 comments
Open

Dynamic module discovery #21

StijnDeJong opened this issue Sep 3, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@StijnDeJong
Copy link
Collaborator

In the initialization of the library, all modules are added manually.
Instead it should be done automatically, so new module do not have to be added here every time.
This can be done similarly to how it has been done in the AI_Interface and the RealTestDataGenerator.
As every module inherits from Module, import all its subclasses and add them to the list of libraries indicated by the arrow.

    def __init__(self) -> None:
        """
        Initializes the RobotFrameworkAI library with necessary components like RealTestDataGenerator,
        Chatbot, and Assistant, which are integrated to provide AI capabilities to Robot Framework.
        """
        libraries = [RealTestDataGenerator(), Chatbot(), Assistant()]    <---
        DynamicCore.__init__(self, libraries) 
@StijnDeJong StijnDeJong added enhancement New feature or request good first issue Good for newcomers labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant