{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://jambonz.org/schema/verbs/s2s",
  "minVersion": "10.1.0",
  "title": "S2S",
  "description": "Synonym for 'llm'. Connects the caller to a large language model for a real-time speech-to-speech voice conversation. Requires 'vendor' to be specified explicitly.",
  "type": "object",
  "allOf": [
    {
      "$ref": "../components/llm-base"
    }
  ],
  "properties": {
    "verb": {
      "const": "s2s",
      "description": "The verb name."
    }
  },
  "required": [
    "vendor",
    "llmOptions"
  ],
  "examples": [
    {
      "verb": "s2s",
      "vendor": "openai",
      "model": "gpt-4o-realtime",
      "llmOptions": {
        "messages": [
          {
            "role": "system",
            "content": "You are a helpful voice assistant."
          }
        ]
      },
      "actionHook": "/s2s-complete"
    }
  ]
}
