Skip to content

Latest commit

 

History

History

prompt-sdk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

📚 Documentation   •   🖥️ Application   •   🏠 Home

Getting started

OPENAI_API_KEY=<your-openai-api-key>
AUTOBLOCKS_INGESTION_KEY=<your-autoblocks-ingestion-key>

Create a prompt

Go to https://app.autoblocks.ai/prompts and click on Create Prompt.

example-prompt

Create a prompt like this and deploy it.

Set your API key

Then, get your API key from here and set it as an environment variable:

export AUTOBLOCKS_API_KEY=...

Create your .autoblocks.yml file

This file instructs the CLI which prompts and which of their versions to autogenerate code for. One has already been created for you in ./.autoblocks.yml.

Install dependencies

poetry install

Autogenerate classes

This CLI will autogenerate classes for you to use to interact with the prompts you've created in the UI.

poetry run prompts generate

Run the script

poetry run start