Prepare your account
quickstart
.
Create a prompt
selectedIngredients
and iterates over it to form a bulleted list. For more on the templating syntax, see the prompt templating guide.Try the prompt
selectedIngredients
variable. Paste this value: ["Turkey", "Spinach", "Berries"]
.
Improve the prompt
Create a basic test
selectedIngredients
.
Contains additional ingredients
.
**Additional Ingredients:**
.
Create a more complex assertion
console.log
statements and click “Run” to execute the code.Deploy the prompt
Generate a project API key
Integrate with the sample app
.env.local.example
file and rename it to .env.local
.
LANGTAIL_API_KEY
with the project API key generated in the last step.
quickstart
, modify the generate_meals.ts
file with the one you used. Here’s the exact line.
View logs and metrics