{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robutler-ai/json-schema/robutler-ai-agent-schema.json",
  "title": "Agent",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/robutler-ai-openapi.yml#/components/schemas/Agent",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "instructions": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "isPublic": {
      "type": "boolean"
    },
    "intents": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "agentUrl": {
      "type": "string",
      "format": "uri"
    },
    "avatarUrl": {
      "type": "string",
      "format": "uri"
    },
    "acceptFrom": {
      "$ref": "#/$defs/TrustRule"
    },
    "talkTo": {
      "$ref": "#/$defs/TrustRule"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "TrustRule": {
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "object",
          "properties": {
            "allow": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "deny": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "allow"
          ]
        }
      ]
    }
  }
}