Creating a Structure from a GitHub Repo#
You can host your Gen AI Builder SDK Augment Agents with Tools , Pipelines , and Workflows on Gen AI Builder. This allows you to run your Structures without needing to manage infrastructure.
For production use-cases, we recommend connecting Gen AI Builder to GitHub and storing the code for your Structures in one or more a GitHub repos.
Connect Your GitHub Account in your Gen AI Builder account
Install the Gen AI Builder GitHub app to your GitHub account or organization
Be sure to allow the app access to
All Repositoriesor select the specific repositories you need
Ensure your repository has a Structure Config YAML file. If your repository contains multiple Structures, each Structure must have a separate Structure Config YAML file. - To learn more see Structure Config YAML
Navigate to the Create Structure page in the Gen AI Builder Console
Select Gen AI Builder Structure from GitHub Repo
Select the GitHub Organization, Repository and Branch that you wish to deploy from.
Specify the
structure_config.yamlfor this deploymentOptionally, Enable Webhook and/or add Environment Variables
Click Create to create your Structure using the configuration details that you have entered
You can now create a Structure in the Gen AI Builder console by providing your GitHub repository information.
Create a Structure from a ZIP file#
Ensure your Structure folder has a Structure Config YAML file. If your Structure folder contains multiple Structures, each Structure must have a separate Structure Config YAML file. - To learn more see Structure Config YAML
Create a functional Python venv in your Structure folder - Populating your virtual environment with your Structure’s Python dependencies can be done using pip
Compress the entire Structure folder into a ZIP file
On Mac and Linux systems, this can be done with the ‘zip’ CLI command
On Windows systems, this can be done with the ‘tar.exe’ PowerShell command
Upload the created ZIP file to a Data Lakes and note the Asset Name
Specify the
structure_config.yamlfor this deploymentOptionally, Enable Webhook and/or add Environment Variables
Click Create to create your Structure using the configuration details that you have entered
You can now create a Structure in the Gen AI Builder console by providing your Bucket and Asset Name from above.
Quickstart With Samples and Templates#
To get started with Structures in the Cloud, check out the managed-structure-template on GitHub or deploy one of the griptape-sample-structures from GitHub .