{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PostCallSummary",
  "title": "PostCallSummary",
  "type": "object",
  "properties": {
    "initialContactReason": {
      "type": "string",
      "description": "The primary issue or request the customer contacted you about at the start of the interaction."
    },
    "additionalContext": {
      "type": "string",
      "description": "Relevant background details shared during the conversation that help explain the situation."
    },
    "additionalContactReasons": {
      "type": "string",
      "description": "Any new or secondary issues raised after the initial reason for contact."
    },
    "keyActionsTaken": {
      "type": "string",
      "description": "The main steps the agent took to investigate, resolve, or address the customer's request."
    },
    "nextSteps": {
      "type": "string",
      "description": "Clear follow-up actions and expected outcomes agreed upon before ending the interaction."
    },
    "chosenWrapUpCode": {
      "type": "string",
      "description": "The wrap-up reason code that was ultimately selected by the agent at the end of the interaction."
    },
    "proposedWrapUpCodes": {
      "type": "array",
      "nullable": true,
      "description": "A list of wrap-up reasons suggested by the AI based on the interaction content. Each object contains a name field. Can return null, 1, or 2 objects.",
      "items": {
        "$ref": "#/components/schemas/ProposedWrapUpCode"
      }
    }
  }
}