Instruct

Instruct Command

⚠️

This is a heavy work-in-progress, and is only meant for testing purposes.

Today, scripts need to be manually written step-by-step, but we're working on iterative script generation via our CLI:

$ mayalabs instruct -c 'fetch Name and Email from gsheet, write function to merge all columns, and return data'

The generated script can be directly deployed, or saved for reuse as an output.nl file, which can be loaded in Python like this :

main.py
script = open("./output.nl").read()
 
function = mayalabs.Function(name="FormThing")
 
function.update(script=script)