Classify the emotion(s) a text expresses from a closed taxonomy (joy, anger, sadness, fear, surprise, disgust, neutral) with a primary emotion, secondary emotions, and intensity.
Classify the emotion a text expresses, from a closed taxonomy — joy, anger, sadness, fear, surprise, disgust, neutral — with a primary_emotion, ranked secondary_emotions, and an intensity. Judges the emotion expressed by the writer, not the topic: "thrilled we fixed the outage" is joy, not fear.
| Entrypoint | Renders | Inputs |
|---|---|---|
system | Emotion taxonomy + rules + embedded output schema | — |
user | The delimited text | text |
Render system as the system message and user as the user message.
text (string, required) — the text to classify; may be empty.{
"reasoning": "Excitement dominates, with a note of relief; clearly positive and strong.",
"primary_emotion": "joy",
"secondary_emotions": ["surprise"],
"intensity": "high"
}
primary_emotion is a closed enum — exhaustive handling guaranteed by parseOutput().secondary_emotions never repeats the primary and never contains neutral; empty for single-emotion or neutral text.intensity is low / medium / high (neutral → low).neutral / [] / low (asserted by the eval).<text> delimiter.primary_emotion == expected (with a secondary-emotion allowance on cases flagged ambiguous) + schema, deterministic CEL.Part of the Text Classification collection.