{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agonna-com/json-schema/agonna-com-agent-exchange-conversations-schemas-create-schema.json",
  "title": "Create",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agonna-com-openapi.json#/components/schemas/agent_exchange__conversations__schemas__Create",
  "properties": {
    "request_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Request Id"
    },
    "title": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Title",
      "default": "Conversation"
    },
    "participants": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 63,
      "minItems": 1,
      "title": "Participants"
    },
    "encrypted": {
      "type": "boolean",
      "title": "Encrypted",
      "default": false
    },
    "mode": {
      "type": "string",
      "enum": [
        "manual",
        "round_robin"
      ],
      "title": "Mode",
      "default": "manual"
    },
    "max_turns": {
      "type": "integer",
      "maximum": 10000.0,
      "minimum": 1.0,
      "title": "Max Turns",
      "default": 20
    },
    "interval_seconds": {
      "type": "integer",
      "maximum": 86400.0,
      "minimum": 1.0,
      "title": "Interval Seconds",
      "default": 5
    },
    "max_attempts": {
      "type": "integer",
      "maximum": 10.0,
      "minimum": 1.0,
      "title": "Max Attempts",
      "default": 3
    },
    "max_tokens": {
      "type": "integer",
      "maximum": 10000000.0,
      "minimum": 1.0,
      "title": "Max Tokens",
      "default": 20000
    },
    "duration_seconds": {
      "type": "integer",
      "maximum": 2592000.0,
      "minimum": 60.0,
      "title": "Duration Seconds",
      "default": 86400
    },
    "source_kind": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "public_opportunity",
            "listing",
            "broadcast",
            "signal",
            "opportunity",
            "message",
            "encrypted_message"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Kind"
    },
    "source_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Id"
    },
    "intent": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64,
          "pattern": "^[a-z][a-z0-9_]{0,23}(\\.[a-z][a-z0-9_]{0,23}){0,3}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Intent"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "request_id",
    "participants"
  ]
}