{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zeronoise-ai/json-schema/zeronoise-ai-agent-configuration-schema.json",
  "title": "AgentConfiguration",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zeronoise-ai-openapi.yaml#/components/schemas/AgentConfiguration",
  "type": "object",
  "required": [
    "name",
    "description",
    "goal",
    "instructions",
    "discovery_instructions",
    "output",
    "tasks",
    "schedule",
    "transcription_mode",
    "briefing_preset",
    "evidence_capabilities"
  ],
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 120
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 2000
    },
    "goal": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 4000
    },
    "instructions": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 16000
    },
    "discovery_instructions": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 16000,
      "description": "The Agent's standing source discovery instructions (\"Source discovery instructions\" in the web app). Discovery requests over the API pass their own."
    },
    "output": {
      "$ref": "#/$defs/AgentOutput"
    },
    "tasks": {
      "$ref": "#/$defs/AgentTasks"
    },
    "schedule": {
      "$ref": "#/$defs/AgentSchedule"
    },
    "transcription_mode": {
      "type": "string",
      "enum": [
        "budget",
        "premium"
      ],
      "default": "budget"
    },
    "briefing_preset": {
      "type": "string",
      "enum": [
        "economy",
        "standard",
        "advanced",
        "expert"
      ],
      "default": "standard"
    },
    "evidence_capabilities": {
      "$ref": "#/$defs/AgentEvidenceCapabilities"
    }
  },
  "$defs": {
    "AgentEvidenceCapabilities": {
      "type": "object",
      "description": "Agent preferences for optional external evidence. Runtime availability may further narrow them.",
      "required": [
        "external_web",
        "image_analysis"
      ],
      "properties": {
        "external_web": {
          "type": "string",
          "enum": [
            "disabled",
            "on_demand"
          ]
        },
        "image_analysis": {
          "type": "string",
          "enum": [
            "disabled",
            "on_demand"
          ]
        }
      }
    },
    "AgentOutput": {
      "type": "object",
      "required": [
        "style",
        "language"
      ],
      "properties": {
        "style": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "maxLength": 4000
        },
        "language": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[a-z]{2}$"
        }
      }
    },
    "AgentSchedule": {
      "type": "object",
      "required": [
        "frequency",
        "time",
        "weekday",
        "timezone"
      ],
      "properties": {
        "frequency": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "daily",
            "weekly"
          ]
        },
        "time": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
        },
        "weekday": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "monday",
            "tuesday",
            "wednesday",
            "thursday",
            "friday",
            "saturday",
            "sunday"
          ]
        },
        "timezone": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "maxLength": 255
        }
      }
    },
    "AgentTask": {
      "type": "object",
      "required": [
        "instructions"
      ],
      "properties": {
        "instructions": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "maxLength": 16000
        }
      }
    },
    "AgentTasks": {
      "type": "object",
      "required": [
        "extract_information",
        "generate_brief"
      ],
      "properties": {
        "extract_information": {
          "$ref": "#/$defs/AgentTask"
        },
        "generate_brief": {
          "$ref": "#/$defs/AgentTask"
        }
      }
    }
  }
}