Skip to content

Dynamic module discovery #21

Open
Open
@StijnDeJong

Description

@StijnDeJong

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) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions