{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/simple-ai/json-schema/simple-ai-agent-response-schema.json",
  "title": "AgentResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/simple-ai-agents-api-openapi.yml#/components/schemas/AgentResponse",
  "properties": {
    "prompt": {
      "type": "string",
      "title": "Prompt"
    },
    "available_params": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Available Params",
      "default": []
    },
    "name": {
      "type": "string",
      "title": "Name",
      "default": "Agent"
    },
    "first_sentence": {
      "type": "string",
      "title": "First Sentence",
      "description": "The first sentence the agent will say when starting a call"
    },
    "language": {
      "type": "string",
      "title": "Language",
      "description": "The language the agent uses for calls",
      "enum": [
        "en",
        "es"
      ]
    },
    "record": {
      "type": "boolean",
      "title": "Record",
      "description": "Whether the agent's calls are recorded"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "organization_id": {
      "type": "integer",
      "title": "Organization Id"
    },
    "user_id": {
      "type": "integer",
      "title": "User Id"
    },
    "analyzers": {
      "type": "array",
      "title": "Analyzers",
      "items": {
        "type": "object",
        "required": [
          "id",
          "prompt",
          "output_config"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "prompt": {
            "type": "string",
            "title": "Prompt"
          },
          "output_config": {
            "type": "object",
            "title": "Output Config"
          }
        }
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "prompt",
    "id",
    "organization_id",
    "user_id",
    "created_at",
    "updated_at",
    "analyzers"
  ]
}