{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Classify continuation and closing cues in the last user and assistant messages without predicting whether the user will return.",
  "question": "Read the last user and assistant messages. Open follow-up: the assistant asks the user a genuine question; this takes priority. Closed exchange: otherwise the user explicitly ends the exchange. No closing cue: complete messages establish neither. Need exchange: messages or relevant context are missing/conflicting. Quoted or rhetorical questions do not count. Classify wording only; do not predict a return or change a cache.",
  "choices": [
    "Open follow-up",
    "Closed exchange",
    "No closing cue",
    "Need exchange"
  ],
  "actions": {
    "Open follow-up": {
      "action": "preview_jev_conversation_followup_state",
      "payload": {
        "decision": "Open follow-up"
      },
      "pending": true
    },
    "Closed exchange": {
      "action": "preview_jev_conversation_followup_state",
      "payload": {
        "decision": "Closed exchange"
      },
      "pending": true
    },
    "No closing cue": {
      "action": "preview_jev_conversation_followup_state",
      "payload": {
        "decision": "No closing cue"
      },
      "pending": true
    },
    "Need exchange": {
      "action": "preview_jev_conversation_followup_state",
      "payload": {
        "decision": "Need exchange"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "A decision is requested",
      "expected": "Open follow-up",
      "request": {
        "context": "{\n  \"task\": \"Classify continuation and closing cues in the last user and assistant messages without predicting whether the user will return.\",\n  \"evidence\": {\n    \"lastUserMessage\": \"Prepare the deployment comparison.\",\n    \"lastAssistantMessage\": \"Should I compare the Frankfurt or Dublin region?\"\n  }\n}",
        "question": "Read the last user and assistant messages. Open follow-up: the assistant asks the user a genuine question; this takes priority. Closed exchange: otherwise the user explicitly ends the exchange. No closing cue: complete messages establish neither. Need exchange: messages or relevant context are missing/conflicting. Quoted or rhetorical questions do not count. Classify wording only; do not predict a return or change a cache.",
        "choices": [
          "Open follow-up",
          "Closed exchange",
          "No closing cue",
          "Need exchange"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Explicit ending",
      "expected": "Closed exchange",
      "request": {
        "context": "{\n  \"task\": \"Classify continuation and closing cues in the last user and assistant messages without predicting whether the user will return.\",\n  \"evidence\": {\n    \"lastUserMessage\": \"Thanks, that is all for today.\",\n    \"lastAssistantMessage\": \"You are welcome.\"\n  }\n}",
        "question": "Read the last user and assistant messages. Open follow-up: the assistant asks the user a genuine question; this takes priority. Closed exchange: otherwise the user explicitly ends the exchange. No closing cue: complete messages establish neither. Need exchange: messages or relevant context are missing/conflicting. Quoted or rhetorical questions do not count. Classify wording only; do not predict a return or change a cache.",
        "choices": [
          "Open follow-up",
          "Closed exchange",
          "No closing cue",
          "Need exchange"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Ordinary acknowledgment",
      "expected": "No closing cue",
      "request": {
        "context": "{\n  \"task\": \"Classify continuation and closing cues in the last user and assistant messages without predicting whether the user will return.\",\n  \"evidence\": {\n    \"lastUserMessage\": \"Use blue for the accent.\",\n    \"lastAssistantMessage\": \"The accent is now blue.\"\n  }\n}",
        "question": "Read the last user and assistant messages. Open follow-up: the assistant asks the user a genuine question; this takes priority. Closed exchange: otherwise the user explicitly ends the exchange. No closing cue: complete messages establish neither. Need exchange: messages or relevant context are missing/conflicting. Quoted or rhetorical questions do not count. Classify wording only; do not predict a return or change a cache.",
        "choices": [
          "Open follow-up",
          "Closed exchange",
          "No closing cue",
          "Need exchange"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Question after an ending",
      "expected": "Open follow-up",
      "request": {
        "context": "{\n  \"task\": \"Classify continuation and closing cues in the last user and assistant messages without predicting whether the user will return.\",\n  \"evidence\": {\n    \"lastUserMessage\": \"That is everything; thanks.\",\n    \"lastAssistantMessage\": \"Before we finish, should the appendix be included?\"\n  }\n}",
        "question": "Read the last user and assistant messages. Open follow-up: the assistant asks the user a genuine question; this takes priority. Closed exchange: otherwise the user explicitly ends the exchange. No closing cue: complete messages establish neither. Need exchange: messages or relevant context are missing/conflicting. Quoted or rhetorical questions do not count. Classify wording only; do not predict a return or change a cache.",
        "choices": [
          "Open follow-up",
          "Closed exchange",
          "No closing cue",
          "Need exchange"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Quoted question",
      "expected": "No closing cue",
      "request": {
        "context": "{\n  \"task\": \"Classify continuation and closing cues in the last user and assistant messages without predicting whether the user will return.\",\n  \"evidence\": {\n    \"lastUserMessage\": \"Explain the sample terminal output.\",\n    \"lastAssistantMessage\": \"The example prints \\\"Continue?\\\" as literal text. I am not asking you to answer it.\"\n  }\n}",
        "question": "Read the last user and assistant messages. Open follow-up: the assistant asks the user a genuine question; this takes priority. Closed exchange: otherwise the user explicitly ends the exchange. No closing cue: complete messages establish neither. Need exchange: messages or relevant context are missing/conflicting. Quoted or rhetorical questions do not count. Classify wording only; do not predict a return or change a cache.",
        "choices": [
          "Open follow-up",
          "Closed exchange",
          "No closing cue",
          "Need exchange"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "User message absent",
      "expected": "Need exchange",
      "request": {
        "context": "{\n  \"task\": \"Classify continuation and closing cues in the last user and assistant messages without predicting whether the user will return.\",\n  \"evidence\": {\n    \"lastUserMessage\": null,\n    \"lastAssistantMessage\": \"Understood.\"\n  }\n}",
        "question": "Read the last user and assistant messages. Open follow-up: the assistant asks the user a genuine question; this takes priority. Closed exchange: otherwise the user explicitly ends the exchange. No closing cue: complete messages establish neither. Need exchange: messages or relevant context are missing/conflicting. Quoted or rhetorical questions do not count. Classify wording only; do not predict a return or change a cache.",
        "choices": [
          "Open follow-up",
          "Closed exchange",
          "No closing cue",
          "Need exchange"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
