{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/theothers-shop/json-schema/theothers-shop-agent-message-schema.json",
  "title": "AgentMessage",
  "description": "Incoming message from a customer agent.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/theothers-shop-openapi.json#/components/schemas/AgentMessage",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id",
      "description": "Unique ID of the calling agent"
    },
    "session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id",
      "description": "Conversation session ID"
    },
    "message": {
      "type": "string",
      "title": "Message",
      "description": "Natural language message or query"
    },
    "context": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Context",
      "description": "Extra context"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "message"
  ]
}