systeminit / si

The System Initiative software
https://systeminit.com
Apache License 2.0
1.59k stars 261 forks source link

Add action function generation stubs #4939

Closed jkeiser closed 1 week ago

jkeiser commented 1 week ago

These prompts are literally identical to asset-schema at the moment. This hits the starting engine on prompt engineering and allows one to iterate on the prompt by setting OPENAI_API_KEY and then running:

buck2 run bin/asset-sprayer-prompts CreateAction sqs create-queue
buck2 run bin/asset-sprayer-prompts DeleteAction sqs delete-queue
buck2 run bin/asset-sprayer-prompts RefreshAction sqs describe-queue
buck2 run bin/asset-sprayer-prompts UpdateAction sqs update-queue

Iterate on the corresponding prompt in lib/asset-sprayer/prompts/aws/create_action.yaml, etc. and re-run. (No need to recompile each time, it'll pull it from the local directory.)