/ai-hackathon

Acquia 48Create 2024 AI Hackathon Project

Primary LanguagePython

Drupal Module Test Generator - an Acquia 48Create 2024 AI Hackathon Project

The Drupal Module Test Generator is a Python application designed to automate the creation of comprehensive test cases for Drupal modules based on their routing files. It utilizes the Bedrock service from AWS for the Claude Sonnet model, Streamlit for the user interface, and LangChain for natural language processing.

Usage

  1. Clone the repository to your local machine:

    git clone https://github.com/TravisCarden/ai-hackathon.git
  2. Install the required dependencies using pip:

    pip install -r requirements.txt
  3. Run source assume-role.sh, then enter your MFA when asked. This assumes you have CloudServicesDev and AWS-Users AWS accounts set up for AWS CLI locally.

  4. Run the Streamlit app:

    streamlit run app/main.py
  5. Access the Streamlit app in your browser and provide the routing file data as input. The app will generate PHP test cases based on the provided data.

Development

Once you've followed the steps to run the application, you'll be ready to start developing it further. Additionally, for those already utilizing Docker and Visual Studio Code, we've set up a devcontainer to streamline the setup process. Simply ensure you have the Dev Containers extension installed. Then, open your ai-hackathon directory in VSCode, and it should prompt you to use the development container automatically.

Helpful commands

aws bedrock list-foundation-models --region=us-west-2 --by-provider anthropic --query "modelSummaries[*].modelId"
aws bedrock list-foundation-models --region=us-west-2 --by-provider amazon --query "modelSummaries[*].modelId"

Further experiments