Here is a prompt that that analyzes the sentiment of some text and returns a JSON object containing that sentiment. Here’s what a basic set of tests could look like:Documentation Index
Fetch the complete documentation index at: https://langtail.com/docs/llms.txt
Use this file to discover all available pages before exploring further.

- Test 1 - Positive Sentiment
- Case: “I am happy.”
- Assertion: An equals assertion with the value
{"sentiment": "positive"}
- Test 2 - Positive Sentiment
- Case: “I am sad.”
- Assertion: An equals assertion with the value
{"sentiment": "negative"}
- Test 3 - Is Valid JSON
- Case: “I saw a blue car.”
- Assertion: A javascript assertion with the following code: